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
Name | Type | Optional | Description |
---|---|---|---|
label | string | Yes | Specifies the label. |
style | IStaticStyle | Yes | Specifies 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
🗃️ Fields
🏷️ isVisible
Sets or retrieves the visibility of the control.
Type
boolean
🏷️ style
Contains the static control style.
Type
▶️ 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
Name | Type | Optional | Description |
---|---|---|---|
visible | boolean | Yes | Specifies 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;
}