Create
Execute Dialog:Create to create a new Dialog.
Parameters
Dialog:Create(title, description?, submitLabel?, cancelLabel?)| Name | Type | Description | Required |
|---|---|---|---|
| title | string | The title of the dialog | Yes |
| description | string | The description of the dialog | No |
| submitLabel | string | The text of the primary button | No |
| cancelLabel | string | The text of the secondary button | No |
Example
client/example.lua
local dialog--[[Dialog]] = Dialog:Create(
'Title',
'Description'--[[Optional]],
'Submit'--[[Optional]],
'Cancel'--[[Optional]]
);