object:setLabel()

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