Creates a header.
dataElement and placement (required), items, gap, grow, justifyContent, position, float, maxWidth, maxHeight, opacityMode, opacity, stroke, style, label.
Returns the grouped items of the header.
Items whose type is 'groupedItems'.
Returns the items of the header, optionally only those of one type.
Optionaltype: string
Item type to keep, for example 'groupedItems' or 'toolButton'.
The matching items.
Sets the space between items. Invalid values are ignored with a warning.
Space in pixels.
Replaces the items of the header. Items of unknown types are dropped with a warning; new item objects are registered in the UI.
An item or an array of items (objects or dataElements of existing items).
Sets how items are distributed along the header. Invalid values are ignored with a warning.
One of 'start', 'end', 'center', 'space-between', 'space-around', 'space-evenly'.
Sets the maximum height of the header. Negative or non-numeric values are ignored with a warning.
Height in pixels.
Sets the maximum width of the header. Negative or non-numeric values are ignored with a warning.
Width in pixels.
Replaces the inline CSS styles of the header and updates it on screen.
CSS property names (camelCase) mapped to their values.
Unique name of the header.
Whether the header floats over the document instead of taking its own space.
Space between items, in pixels.
Flex grow factor of the header (kept with the header data).
Items in the header, in display order.
OptionaljustifyHow items are distributed along the header ('start', 'end', 'center', 'space-between', 'space-around' or 'space-evenly').
OptionallabelOptional label of the header.
OptionalmaxMaximum height of the header, in pixels.
OptionalmaxMaximum width of the header, in pixels.
OptionalopacityOpacity level of a floating header: 'full' (default), 'low' or 'none'.
OptionalopacityOpacity mode of a floating header: 'static' (default) or 'dynamic' (becomes opaque on hover or focus).
Side of the viewer the header is placed on: 'top', 'bottom', 'left' or 'right'.
OptionalpositionPosition of a floating header along its side: 'start' (default), 'center' or 'end'.
Whether the header draws a border on the side facing the document; true by default.
Inline CSS styles applied to the header element.
Item type: 'modularHeader'.
A header bar placed on one side of the viewer that holds items and groups.
Example