Introducing
About WindUI
Setup
LoadstringThemes
UI
WindowKey SystemTabDialogPopupNotificationTagTab Section
Elements
SectionButtonToggleSliderInputDropdownParagraphKeybindColorpickerCodeDividerSpaceImageGroup (deprecated)HStack & VStack
Advanced
ConfigsIcons

Dialog

Create confirmation dialogs and prompts in WindUI

Dialog Component

Dialogs are modal windows that prompt users for confirmation or input. They block interaction with other UI elements until closed.

local Dialog = Window:Dialog({
    Title = "Confirm Action",
    Content = "Are you sure?",
    Buttons = {
        {
            Title = "Yes",
            Callback = function()
                print("Confirmed")
            end
        },
        {
            Title = "No",
            Callback = function()
                print("Cancelled")
            end
        }
    }
})

Dialog Parameters

NameDefault
: stringDialog
: string?nil
: boolean?false
: stringnil
: table{}

Button Configuration

Each button in the Buttons array can have:

NameDefault
: stringButton
: string?nil
: string?Primary
: function?nil

Dialog Methods

Show Dialog

Display the dialog on screen. This makes it visible and interactive.

Dialog:Show()

Close Dialog

Hide and close the dialog.

Dialog:Close()