DOMInstance script interface
The IDOMInstance
script interface represents a single instance of an object type (represented by IObjectClass) that appears in a layout and represents a DOM element such as a button or other form control at runtime. It derives from the IWorldInstance script interface.
Note these methods can still be used in worker mode, since it does not directly access a DOM element.
DOMInstance APIs
- focus()
- blur()
- Focus or blur the DOM element represented by this instance.
- setCssStyle(prop, val)
- Apply a CSS style to the DOM element, using a string of the property name (in CSS format, e.g.
"background-color"
and a string of the property value (e.g. "red"
).
- getElement()
- Return the HTML element used to represent the object.
Construct Animate Manual
Construct.net
2019-08-12
2020-08-05
You are here:
Search this manual:
This manual entry was last updated on 5 Aug, 2020 at 15:57