MRElement
HTMLElement
MRElement ⇐ The first step in MRjs extending an HTMLElement. Used as a base for both mr-app
and mr-entity
.
Kind: global class
Extends: HTMLElement
mrElement.MRElement
Kind: instance class of MRElement
new exports.MRElement()
Constructs the basic information needed to separate an MRElement
from an HTMLElement
.
mrElement.add(entity)
Adding an entity as a sub-object of this entity.
Kind: instance method of MRElement
Param | Type | Description |
---|---|---|
entity | object |
the entity to be added. |
mrElement.removeEntity(entity)
Removing an entity as a sub-object of this entity.
Kind: instance method of MRElement
Param | Type | Description |
---|---|---|
entity | object |
the entity to be removed. |