Constructor
new LabelTitle(text, description, labelAttributesopt, optionsopt)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
text |
string | The string to use as label. |
||||||||||||||
description |
string | A string describing the form element. |
||||||||||||||
labelAttributes |
object |
<optional> |
{} | The parameters to consider as
attributes for the HTML Properties
|
||||||||||||
options |
object |
<optional> |
{} | Parameters considered to generate the component. Properties
|
- Implements:
- Source:
Members
domElement :HTMLDivElement
Reference to the DOM object that contains the HTML structure of the component.
Type:
- HTMLDivElement
- Implements:
- Source:
label :HTMLLabelElement
Reference to the DOM object representing the <label>
element.
Type:
- HTMLLabelElement
- Source:
Methods
disable()
Disables the component.
- Implements:
- Source:
enable()
Enables the component.
- Implements:
- Source:
setLabelFor(htmlFor)
Sets the for
attribute of the <label>
element.
Parameters:
Name | Type | Description |
---|---|---|
htmlFor |
string | The |
- Source: