Skip to main content

Group class

📖 Description

The Group class defines a group of controls for the Tripetto builder.


🆕 constructor

Creates a new Group instance.

Signature

constructor(controls: Control[]): Group

Parameters

NameTypeOptionalDescription
controlsControl[]NoSpecifies the controls for the group.

Return value

Returns a reference to the new Group instance.

🗃️ Fields


🏷️ controls

Retrieves the controls in the group.

Type

Control[]


🏷️ isDisabled

Sets or retrieves if the group is disabled.

Type

boolean


🏷️ isLocked

Sets or retrieves if the group is locked (readonly).

Type

boolean


🏷️ isVisible

Sets or retrieves if the group is visible.

Type

boolean

▶️ Methods


🔧 disable

Disables the group.

Signature

disable(): this

Return value

Returns a reference to the Group instance to allow chaining.


🔧 disabled

Specifies the state of the group.

Signature

disabled(disabled: boolean): this

Parameters

NameTypeOptionalDescription
disabledbooleanNoSpecifies if the group is disabled.

Return value

Returns a reference to the Group instance to allow chaining.


🔧 enable

Enables the group.

Signature

enable(): this

Return value

Returns a reference to the Group instance to allow chaining.


🔧 hide

Hides the group.

Signature

hide(): this

Return value

Returns a reference to the Group instance to allow chaining.


🔧 lock

Locks the group.

Signature

lock(): this

Return value

Returns a reference to the Group instance to allow chaining.


🔧 locked

Specifies if the group is locked (readonly).

Signature

locked(locked?: boolean): this

Parameters

NameTypeOptionalDescription
lockedbooleanYesSpecifies if the group is locked (readonly).

Return value

Returns a reference to the Group instance to allow chaining.


🔧 readonly

Makes the group readonly.

Signature

readonly(): this

Return value

Returns a reference to the Group instance to allow chaining.


🔧 show

Shows the group.

Signature

show(): this

Return value

Returns a reference to the Group instance to allow chaining.


🔧 unlock

Unlocks the group.

Signature

unlock(): this

Return value

Returns a reference to the Group instance to allow chaining.


🔧 visible

Specifies the visibility of the group.

Signature

visible(visible: boolean): this

Parameters

NameTypeOptionalDescription
visiblebooleanNoSpecifies if the group is visible.

Return value

Returns a reference to the Group instance to allow chaining.