g-on-get-height
event¶
Description: Called so you can provide dynamic height logic to the control.
Allows breakdown by screen size: Yes
Arguments:
Argument |
Description |
---|---|
|
The screen size for which the interface is being aligned.
Learn more about screen size breakdowns here |
|
The default height that the grid system will use if the event does not return a new value. |
To inform the grid system that you want to use a new height, you must return a number inside the event.
Example:
<form>
<button text="Button 2" g="block" g-on-get-height="return 2 + 9 + 33;"/>
</form>
In this example, the button's height will be equal to the sum calculated in Lua.