Class HTMLElementsFactory

HTMLElements factory See theHTMLElementsFactory for the one and only one instance of this class

Source : file core/uiLib/HTMLElementsFactory.js at line 33

Constructor

new HTMLElementsFactory ( )

Constructor

Source : file core/uiLib/HTMLElementsFactory.js at line 70

Public methods

create ( tagName, properties, parentNode )

Create an HTMLElement Object

Source : file core/uiLib/HTMLElementsFactory.js at line 82

Parameters

Name Type Description
tagName String

The tag of the HTMLElement to create

properties null or Object

An object with properties to add to the HTMLElement

parentNode null or HTMLElement

The parent node to witch the HTMLElement will be attached

Returns

The created HTMLElement
Type : HTMLElement

Private methods

#addProperties ( element, properties )

#addProperties This method add the properties to the created element

Source : file core/uiLib/HTMLElementsFactory.js at line 42

Parameters

Name Type Description
element HTMLElement

The HTMLElement for witch the properties will be added

properties Object

An object with properties to add to the HTMLElement