Skip to content

GroupsDataTableBuilder

A GroupsDataTableBuilder is used to setup and build two-dimensional arrays containing groups.

Constructors

Constructor

new GroupsDataTableBuilder(groups): GroupsDataTableBuilder;

Parameters

ParameterType
groupsGroup[]

Returns

GroupsDataTableBuilder

Methods

build()

build(): any[][];

Builds a two-dimensional array containing all Groups.

Returns

any[][]

A two-dimensional array containing all Groups


hiddenProperties()

hiddenProperties(include): GroupsDataTableBuilder;

Defines whether to include hidden properties (keys ending with underscore ”_”). Only relevant when properties is enabled. Default is false — hidden properties are excluded.

Parameters

ParameterTypeDescription
includebooleanWhether to include hidden properties

Returns

GroupsDataTableBuilder

This builder with respective option, for chaining.


ids()

ids(include): GroupsDataTableBuilder;

Defines whether include group ids.

Parameters

ParameterTypeDescription
includebooleanWhether to include ids

Returns

GroupsDataTableBuilder

This builder with respective include ids option, for chaining.


properties()

properties(include): GroupsDataTableBuilder;

Defines whether include custom group properties.

Parameters

ParameterTypeDescription
includebooleanWhether to include properties

Returns

GroupsDataTableBuilder

This builder with respective include properties option, for chaining.


tree()

tree(enable): GroupsDataTableBuilder;

Defines whether to render groups as an indented tree instead of flat rows with a Parent column. When enabled, child group names are indented by depth level and the Parent column is removed. Default is false.

Parameters

ParameterTypeDescription
enablebooleanWhether to enable tree rendering

Returns

GroupsDataTableBuilder

This builder with respective option, for chaining.