blob: 7646a0a881397297ce5795ffdd4d1c0770abceed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---Label API documentation
---Label API documentation
---@class label
label = {}
---Gets the text from a label component
---@param url string|hash|url # the label to get the text from
---@return string # the label text
function label.get_text(url) end
---Sets the text of a label component
--- This method uses the message passing that means the value will be set after dispatch messages step.
---More information is available in the Application Lifecycle manual <>.
---@param url string|hash|url # the label that should have a constant set
---@param text string # the text
function label.set_text(url, text) end
return label
|