Skip to content

textbox

Represents menu textbox

Methods

get_value: string

Returns textbox value

1
local text = tb:get_value()

set_value(v)

Type Name Description Default
string v Value to set none

Sets textbox value

1
tb:set_value('Hello')

set_callback(fn)

Type Name Description Default
function() fn Callback none

Sets callback to current control that's being called on value change

1
2
3
my_element:set_callback(function()
    print('Changed!')
end)

set_tooltip(txt)

Type Name Description Default
string txt Text to set none

Sets tooltip text. Works only for script-created elements!

1
my_element:set_tooltip('This is big function!')