Label.text read/write property


Get or set the Label text content as a string.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Label.text sample", 320, 200) -- add a Label... local label = ui.Label(win, "LuaRT", 130, 80) -- ...and a Button ui.Button(win, "Show Label.text", 100, 10).onClick = function (self) ui.info("Label.text = "..label.text) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible