Constructor
new IconLabelViewMixin(iconopt, labelopt, nullable, subLabelopt, nullable, clickableopt, …args)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
icon |
qui.icons.Icon |
<optional> |
icon |
label |
String |
<optional> <nullable> |
label |
subLabel |
String |
<optional> <nullable> |
subscript label |
clickable |
Boolean |
<optional> |
whether to make view clickable or not (defaults to |
args |
* |
<repeatable> |
parent class parameters |
Methods
getIcon() → (nullable) {qui.icons.Icon}
Return the icon.
Returns:
- Type
- qui.icons.Icon
getIconLabelContainer() → {jQuery}
Return the icon and label container.
Returns:
- Type
- jQuery
getLabel() → {String}
Return the label.
Returns:
- Type
- String
getSubLabel() → (nullable) {String}
Return the subscript label.
Returns:
- Type
- String
isClickable() → {Boolean}
Tell if view is clickable.
Returns:
- Type
- Boolean
makeIconLabelContainer() → {jQuery}
Create the icon and label container.
Returns:
- Type
- jQuery
prepareIcon(icon) → (nullable) {qui.icons.Icon}
Prepare the view icon, altering its attributes as needed, before applying it.
Parameters:
Name | Type | Description |
---|---|---|
icon |
qui.icons.Icon |
Returns:
- Type
- qui.icons.Icon
setClickable(clickable)
Set or clear the clickable flag.
Parameters:
Name | Type | Description |
---|---|---|
clickable |
Boolean |
setIcon(iconnullable)
Update the icon.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
icon |
qui.icons.Icon |
<nullable> |
setLabel(labelnullable)
Update the label.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
label |
String |
<nullable> |
setSubLabel(subLabelnullable)
Update the subscript label.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
subLabel |
String |
<nullable> |
updateIcon()
Reapply the icon.