object:getLabel()

Type Function
Library widget.*
Return value String
Revision Current Public Release (2017.3068)
Keywords widget, button, ButtonWidget, getLabel
See also object:setLabel()
widget.newButton()
ButtonWidget

Overview

Returns the ButtonWidget label text as a string.

Syntax

object:getLabel()

Example

local label = myButton:getLabel()