Lua Legacy Element Table
A table representing actions that can be done to a HTML++ element.
This is part of the legacy api which is deprecated and no longer maintained.
Contents
Functions:
- get_contents() - Get the text contents / value of a element
- set_contents(text) - Set the text contents / value of a element
- get_content() - Alias of get_contents()
- set_content(text) - Alias of set_contents()
- get_href() - Gets the href of a element
- set_href(url) - Sets the href of a element
- get_source() - Gets the src of a element
- set_source(url) - Sets the src of a element
- get_opacity() - Gets the opacity of a element 0 to 1
- set_opacity(opacity) - Sets the opacity of a element 0 to 1
- get_css_name() - Get the class or tag of a element
- set_value(value) - Sets the value of a input
Events:
- on_click => callback() - When the element is clicked
- on_input => callback(value) - When text is written/changed in an input
- on_submit => callback(value) - When a form is submitted or enter is pressed on a input
Support
| Napture | Bussinga | WXV Core |
|---|