object:setLabel()

Type Function
Library widget.*
Return value none
Revision Current Public Release (2017.3135)
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" )