Class Icon
Define an Icon block to be displayed into a JBlocks.
- Defined in: jblocks.block.icon.js
- Extends Block
Constructor Attributes | Constructor Name and Description |
---|---|
Icon()
An Icon block displays a small non-expandable 1x1 image . |
Method Summary
Class Detail
Icon()
An Icon block displays a small non-expandable 1x1 image .
The constructor should not be invoked directly but JBlocks#newBlock or JBlocks#addNewBlock should be used instead.
Method Detail
-
init(layout, options)Initializes an Icon block. The method is invoked by the jBlocks core and must never be called directly.
- Parameters:
- {Object} layout Optional
- see Block#init.
- {Object} options Optional
- in addition to base class options Block#init:
- {String} options.onClick Optional
- a function to be called when the block is clicked.
- {String} options.iconClass Optional
- css class used for icon.