Skip to content

Dialog ​

Путь подключения: require "ProjectMotionUI/Components/Dialog"


Класс PMUI.Dialog ​

Наследуется от: PMUI.Frame

Методы и функции ​

PMUI.Dialog:new(title, message) ​

Creates a new modal dialog with a title, message, and centered content panel.

ПараметрТипОписание
titlestring|nilDialog title displayed in the header.
messagestring|nilMessage displayed inside the dialog.

Returns: PMUI.Dialog

PMUI.Dialog:AddButton(text, callback) ​

Creates and adds a button to the dialog. Buttons are automatically distributed horizontally across the bottom of the panel.

ПараметрТипОписание
textstringButton label.
callbackfunction|nilFunction invoked when the button is clicked.

Returns: PMUI.Dialog