Extends
Methods
clear()
#
Hide and collapse the error element, remove the label, and set expandable to false.
Hide and collapse the error element, remove the label, and set expandable to false.
setExpandable([expandable])
#
Set the expandability of the error.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
expandable |
boolean |
optional |
Value to set the expandability to, determine based on label size if omitted |
Set the expandability of the error.
show([$element])
#
Show the error and set the label to contain the error text.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
$element |
jQuery |
optional |
Element containing the error |
Show the error and set the label to contain the error text.
toggleLabel([expand])
#
Toggles the label between collapsed and expanded.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
expand |
boolean |
optional |
Expand if true, collapse if false, toggle if omitted |
Toggles the label between collapsed and expanded.