Labels show text but can also be pressed.
<label text="press me!" ontap="foobar" />actions.foobar = function ()
print("you pressed a label!");
endSet the ID for this control so that it can be updated later. See layout library.
<label id="my_lbl" text="foo" />Set the visibility state using visible or invisible or gone.
<label visibility="gone" />Set the text to be shown.
<label text="hello world" />Set horizontal text alignment using left or center or right.
<label text="foo" textalign="right" />Set a standard control icon. See icons list of available icons.
<button icon="select" />Set a custom image to use. Should be an absolute path or relative to the layout file.
<button image="img.png" />See the styling page for more details.
Occurs when the control is tapped.
<label text="foo" ontap="foo_tapped" />actions.foo_tapped = function ()
...
endOccurs when the control is held down.
<label text="bar" onhold="bar_held" />actions.bar_held = function ()
...
endOccurs when the control is released.
<label text="hello" ondown="hello_down" />actions.hello_down = function ()
...
endOccurs when the control pressed down.
<label text="world" onup="world_up" />actions.world_up = function ()
...
end