object:setLabel()

Type Function
Library widget.*
Return value none
Revision 2017.3060
Keywords widget, button, ButtonWidget, setLabel
See also object:getLabel()
widget.newButton()
ButtonWidget

Overview

Sets/updates the ButtonWidget label text.

Syntax

object:setLabel( label )
label (required)

String. The new/updated label for the button.

Example

myButton:setLabel( "New Label" )