Class: module:object

module:object(scene, config)

new module:object(scene, config)

creates objects
Parameters:
Name Type Description
scene HTMLElement parent object
config Object config object
Properties
Name Type Attributes Description
tag string <optional>
tag name of new html element. if not set, it defaults
tag
class Array.<string> <optional>
classes to add to new element. if not set, it defaults nothing
id string <optional>
id of the element. if not set, it defaults nothing ("")
style Object <optional>
style of the element (element.style html property)
attrs Map.<string, string> <optional>
html attributes
Source:

Members

(inner) classList

setter/getter. sets/gets class list. To set needs array of classes
Source:

(inner) html

getter. gets innerHTML
Source:

Methods

(inner) add()

adds element to scene
Source:

(inner) setHtml(html, parserDataopt)

Parameters:
Name Type Attributes Description
html string
parserData Object <optional>
parser data
Source: