new Item(itemopt)
- To Do:
-
- Support for Developr styled inputs (select[class="select"], etc.).
Creates XTL item instance.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
item |
jQuery | Object |
<optional> |
An optional DOM element of XTL item, or object containg XTL properties. |
Members
$dom :jQuery
The DOM element.
Type:
Methods
addClass(styleClass)
Adds CSS style class to item.
Parameters:
Name | Type | Description |
---|---|---|
styleClass |
string | The CSS style class to add. |
disable()
Disables item.
enable()
Enables item.
hasClass() → {boolean}
Determines whether item has specified CSS style class.
Returns:
true if item has CSS style class, false otherwise.
- Type
- boolean
hide()
Hides item.
isHidden() → {boolean}
Determines whether item is hidden.
Returns:
true if item is hidden, false otherwise.
- Type
- boolean
removeClass(styleClass)
Removes CSS style class from item.
Parameters:
Name | Type | Description |
---|---|---|
styleClass |
string | The CSS style class to remove. |
show()
Shows item.
val() → (nullable) {string}
Returns the value of item.
Returns:
The value string.
- Type
- string