#91 get and set values for all controls/indicators and textbox
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
local tcd = require("scada-common.tcallbackdsp")
|
||||
|
||||
local core = require("graphics.core")
|
||||
|
||||
local element = require("graphics.element")
|
||||
|
||||
---@class start_button_args
|
||||
@@ -65,6 +64,12 @@ local function start_button(args)
|
||||
args.callback()
|
||||
end
|
||||
|
||||
-- set the value
|
||||
---@param val boolean new value
|
||||
function e.set_value(val)
|
||||
if val then e.handle_touch(core.events.touch("", 1, 1)) end
|
||||
end
|
||||
|
||||
return e.get()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user