Constructor
new Label(controller, text)
Creates a new Label instance.
Parameters:
Name | Type | Description |
---|---|---|
controller |
Controller | The controller this label is associated with. |
text |
string | The text content of the label. |
- Source:
Extends
Methods
hide()
Hides this field by setting its display to 'none'.
- Overrides:
- Source:
isHidden() → {boolean}
Checks if this field is currently hidden.
- Overrides:
- Source:
Returns:
True if the field is hidden, false otherwise.
- Type
- boolean
setText(text)
Sets the text content of the label.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | The new text content for the label. |
- Overrides:
- Source:
setTooltip(tooltip)
Sets the tooltip text for this field.
Parameters:
Name | Type | Description |
---|---|---|
tooltip |
string | The tooltip text to set. |
- Overrides:
- Source:
show()
Shows this field by setting its display to '' (default).
- Overrides:
- Source: