Dialog
Dialog component for WindUI
Creating Dialog
local Dialog = Window:Dialog({
Icon = "bird",
Title = "Dialog Title",
Content = "Content Text",
Buttons = {
{
Title = "Confirm",
Callback = function()
print("Confirmed!")
end,
},
{
Title = "Cancel",
Callback = function()
print("Cancelled!")
end,
},
},
})
Show Dialog
Dialog:Show()
Close Dialog
Dialog:Close()
API
Dialog Options
Prop | Type | Default |
---|---|---|
Title | string | Dialog |
Content | string | nil |
Buttons | table | {} |
Button Options (inside dialog)
Prop | Type | Default |
---|---|---|
Title | string | Button |
Icon? | string | nil |
Variant? | string | Primary |
Callback? | function | nil |