Lua v2 Element Table

Representation of a element in the lua v2 script

Contents

Properties:

Functions:

  • remove() - Removes the element

Events:

  • on_click => callback() - When the element is clicked
  • on_input => callback(value) - When text is written/changed in an input/textarea
  • on_keypress => callback(key) - When a key is pressed inside an element
  • on_load => callback() - When media element loads
  • on_submit => callback(value) - When a form is submitted or enter is pressed on a input

Support

  WXV Core
element 1
content 1
tag 3
media_context 1
remove 1
on_click 1
on_input 1
on_keypress 1
on_load 1
on_submit 1