Skip to main content

Add a text label (:add_label)

Declaration

dialog_obj = dialog_obj:add_label(text)

Parameters

  • text
    String. The label text

Returns

  • dialog_obj
    Dialog. Returns the dialog itself

Description

Add a text label to the dialog

Example

dialog():add_label('A text label'):show()

Full example

See :show()