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 YAB WXV Core
element v1.0.0 v0.0.1 None 1
get_contents v1.0.0 v0.0.1 None 1
set_contents v1.0.0 v0.0.1 None 1
get_content v1.0.0 v0.0.1 None 1
set_content v1.0.0 v0.0.1 None 1
get_href v1.0.0 v0.0.1 None 1
set_href v1.0.0 v0.0.1 None 1
get_source v1.0.0 v0.0.1 None 1
set_source v1.0.0 v0.0.1 None 1
get_opacity v1.0.0 v0.0.1 None 1
set_opacity v1.0.0 v0.0.1 None 1
get_css_name None v0.0.1 None 1
set_value None v0.0.1 None 1
on_click v1.0.0 v0.0.1 None 1
on_input v1.0.0 v0.0.1 None 1
on_submit v1.0.0 v0.0.1 None 1

*set_content(s) bussinga will set HTML instead of text (This is unsafe), for WXV only if set to bussinga mode *set_value and get_css_name are only available when WXV Core is set to bussinga mode