Class HtmlElement
Define an HtmlElementblock to be displayed into a JBlocks.
- Defined in: jblocks.block.htmlelement.js
- Extends Block
Constructor Attributes | Constructor Name and Description |
---|---|
An HtmlElement block displays a single HTML element, controlling size, padding and margin. |
Method Summary
Class Detail
HtmlElement()
An HtmlElement block displays a single HTML element, controlling size, padding and margin.
The constructor should not be invoked directly but JBlocks#newBlock or JBlocks#addNewBlock should be used instead.
Field Detail
element
Method Detail
-
init(layout, options, tag)Initializes an HtmlElement 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} tag Optional, Default: "p"
- the tag for the HTML element.
- {Array} options.emargin Optional, Default: [0,0,0,0]
- To be documented.
- {Array} options.epadding Optional, Default: [0,0,0,0]
- To be documented.