create Grouped Chunk Output Processor
Type: Function
How to get createGroupedChunkOutputProcessor?
JavaScript
import createGroupedChunkOutputProcessor from 'fontoxml-pipelined-importer/src/createGroupedChunkOutputProcessor.js'
Generic Chunk to node approach to inserting (a set of) Chunk(s) into the DOM
Example for the constructFunctions:
JavaScript
function(blueprint, insertionPosition, document) {
var newElement = document.createElement('someElement');
insertionPosition.setAtBegin(newElement);
return newElement;
}
Both constructor functions are optional, we can either create a single container of a group of chunks, or create an element for each individual chunk, or both
Arguments
label
(Required)
construct
Container Element (Required)
Type: Function
A factory function for the outer element, created only once for a set of consecutive similar chunks
construct
Child Element (Required)
Type: Function
A factory function for the inner element, the inner element is created for ever consecutive chunk matching to the label
matching
Labels (Required)
Type: Array<String>
The labels which will be attempted to be processed by this outputProcessor
Returns
The actual processor