Class: Icon

hui.ui. Icon


new Icon(params)

Parameters:
Name Type Description
params
Properties
Name Type Description
icon String

The icon

Source:

Extends

Methods


destroy()

Removes the component from the DOM

Inherited From:
Source:
See:

fire()

Fire an event with this component as the sender

Inherited From:
Source:

fireSizeChange()

Notify others of a layout change

Inherited From:
Source:

fireValueChange()

Notify others of a value change

Inherited From:
Source:

getElement()

Get the components root element

Inherited From:
Source:
Returns:

Element


listen(listener)

Add event listener

Parameters:
Name Type Description
listener Object

An object with methods for different events

Inherited From:
Source:

setSize(size)

Change the icon size

Parameters:
Name Type Description
size Number

The size in pixels: 16, 32 etc.

Source: