Get View Property
Block Group: | Browser API |
Icon: |
Retrieves the HTML5 view property for a specified DGLux5 component. Works for the following properties:
offsetWidth
offsetHeight
offsetLeft
offsetTop
scrollWidth
scrollHeight
scrollLeft
scrollTop
maxScrollX
maxScrollY
For information about these properties, see an HTML reference such as this one.
For information on using dataflow blocks, see Dataflow.
Input/Output Properties
These properties can take input and give output.
- objectPath (string)
- field (string)
- invoke (trigger)
objectPath specifies the path of the element to get a property for. For the parent of this dataflow block, enter @parent
. See Scripting and Syntax.
field specifies the property whose value you want to retrieve. Use one of the properties listed above.
invoke causes the property value to load.
Output Properties
These properties can give output. They cannot take input.
- output (number)
output returns the value of the property.
Model
This is a basic use of the block.