DOMElement


Inheritance DOMElement View Module hilo/view/DOMElement Requires hilo/core/Hilo, hilo/core/Class, hilo/view/View, hilo/view/Drawable Source DOMElement.js
DOMElement is a wrapper of dom element.(The DOMElement's parent must be stage)


demo:

var domView = new Hilo.DOMElement({
    element: Hilo.createElement('div', {
        style: {
            backgroundColor: '#004eff',
            position: 'absolute'
        }
    }),
    width: 100,
    height: 100,
    x: 50,
    y: 70
}).addTo(stage);

Properties

Show Inherited Properties
Property Defined

Methods

Show Inherited Methods
Method Defined
DOMElement(properties:Object)
Constructor
DOMElement

Constructor

DOMElement(properties:Object)
parameters
properties:Object — create Objects properties. Contains all writable properties in this class. Special properties include:
  • element - dom element to wrap, required!