Members
(static) observedAttributes
Inherited static property, which returns an array of names of these of the object's properties, for which the attributeChangedCallback method is to fire whenever their value changes
Methods
attributeChangedCallback()
Fires when an attribute, whose name is in the retured values of observedAttributes, changes.
connectedCallback()
Inherited mehtod which fires when the html element is
CreateAttribute(attributeName, defaultValue, selector)
Parameters:
Name | Type | Description |
---|---|---|
attributeName |
String | Name of the attribute to be created |
defaultValue |
* | Default value to use if an attribute with the given name does not exist |
selector |
function | A function which returns a useful object base on the contents of the attribute |
Initialize()
Creates any relevant html content and initializes the html element
LoadSrc()
Loads the scene from the src attribute of the html element
SetupAttributeControls()
Sets up the input control models selected via the relevant properties of the html element