Constructor
new Icon(animationopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
animation |
String |
<optional> |
optional icon CSS animation |
- Source:
Methods
(static) getFromElement(element) → (nullable) {qui.icons.Icon}
Return the icon that has been previously applied to an element.
Parameters:
Name | Type | Description |
---|---|---|
element |
jQuery |
- Source:
Returns:
the icon or null
if no icon has been applied to element
- Type
- qui.icons.Icon
applyTo(element)
Apply the icon to an HTML element.
Parameters:
Name | Type | Description |
---|---|---|
element |
jQuery | the element to which the icon will be applied |
- Source:
renderTo(element)
Effectively render the icon onto the HTML element.
Parameters:
Name | Type | Description |
---|---|---|
element |
jQuery | the element onto which the icon will be rendered |
- Source:
toAttributes() → {Object}
Return a dictionary of icon attributes that can be passed to constructor.
- Source:
Returns:
- Type
- Object