Skip to main content

Static class

📖 Description​

The Static class defines a static control for the Tripetto builder. It is derived from the Control class.

📺 Preview​


🆕 constructor​

Creates a new Static instance.

Signature​

constructor(label?: string, style?: IStaticStyle): Static

Parameters​

NameTypeOptionalDescription
labelstringYesSpecifies the label.
styleIStaticStyleYesSpecifies the static style (when omitted the default global style will be used).

Return value​

Returns a reference to the new Static instance.

📌 Statics​


🏷️ style​

Contains the global default style for the static control.

Type​

IStaticStyle

🗃️ Fields​


🏷️ isVisible​

Sets or retrieves the visibility of the control.

Type​

boolean


🏷️ style​

Contains the static control style.

Type​

IStaticStyle

▶️ Methods​


🔧 hide​

Hides the control.

Signature​

hide(): this

Return value​

Returns a reference to the Static instance to allow chaining.


🔧 show​

Shows the control.

Signature​

show(): this

Return value​

Returns a reference to the Static instance to allow chaining.


🔧 visible​

Specifies the visibility of the control.

Signature​

visible(visible?: boolean): this

Parameters​

NameTypeOptionalDescription
visiblebooleanYesSpecifies if the control is visible (default is true).

Return value​

Returns a reference to the Static instance to allow chaining.

⛓️ Interfaces​


🔗 IStaticStyle​

Describes the interface for the static styles.

Type declaration​

interface IStaticStyle {
/* Static appearance. */
appearance?: IStyles;

/* Static appearance when fused with form card. */
fused?: IStyles;

/* Static disabled. */
disabled?: IStyles;
}