a unique identifier of the subgrid in the task layout
Number of columns of the subgrid
configuration object for async rendering of data fields
The elements that are contained in the subgrid
Grid area identifiers that are already in use
A 2D representation of the grid element IDs
The elements that are contained in the subgrid and have already been rendered to the user
Counter to assure element ID uniqueness
the css gridAreas
configuration, that determines the layout of the grids content
Converts a DataField into a DatafieldGridLayoutElement and adds it to the content of this subgrid.
Beware that this method DOES NOT add the element into the resulting grid. This must be done independently by calling the [addRow]{@link Subgrid#addRow} method.
the field that should be added to the subgrid
the type of the field
the created grid element
Adds a row of CSS gridAreaId
s into the grid that is held in this subgrid.
the field Ids. The width of the row should match the number of columns of the grid. If not an error is thrown.
Converts a DataGroup into a DatafieldGridLayoutElement and adds it to the content of this subgrid.
Beware that this method DOES NOT add the element into the resulting grid. This must be done independently by calling the [addRow]{@link Subgrid#addRow} method.
the data group whose title should be added to the grid
the created grid element
Assures that the provided identifier will be unique.
the base for the identifier
the base identifier, if it already is unique. A unique variation on the base identifier if it is already in use.
Joins the grid of element into a string accepted by [gdAreas]
input property of Angular flex layout
Completes the underlying stream and clears any running timeouts
Determines which elements from the provided subgrid are contained in this subgrid. Marks these elements as kept and displays them. Marks the remaining elements as new.
New elements can be displayed asynchronously over time by calling the [renderContentOverTime]{@link Subgrid#renderContentOverTime} method.
the "previous" subgrid that is used to compute the element "difference"
Marks all contained elements as kept and displays them.
the field whose representation should be created
the type of the data field
an object that represents the provided data field in the layout
Fills empty tiles in the grid with blank elements
the counter that is used to track the number of already created filler elements
a filler element object with a unique ID. The provided counter is incremented by one.
Converts the provided configuration into data that can be fed into CSS grid layout
the columns configuration for the grid layout
the data group whose title element should be created
an object that represents a title element of the provided data group. The provided counter is incremented by one.
If elements are not sorted into new and kept, marks all elements as new. The [determineKeptFields]{@link Subgrid#determineKeptFields} method can be used to mark elements as kept.
Then pushes the new elements with the kept elements into the output array over time as specified by the AsyncRenderingConfiguration provided in the subgrids constructor.
the function that is called once all new elements were pushed into the output array
whether this is the first subgrid that si rendered. If this is the first subgrid then on the initial rendering of elements a batch of new fields alongside the loader elements is displayed so that some content is immediately available. Otherwise The initial batch contains only loader elements. Being first effectively shortens the rendering by one batch, since the first loader-only batch is skipped.
Generated using TypeDoc
A configuration for one subgrid - a basic layouting unit