🚀
Maclib UI Library
  • Information
    • Welcome
    • Documentation Formatting
    • Miscellaneous
  • Getting Started
    • Loading Maclib
      • Creating a window
        • Adding a Global Setting
        • Displaying a notification
        • Prompting a dialog
        • Creating a tab group
          • Adding tabs
            • Adding sections
              • Button
              • Input
              • Slider
              • Toggle
              • Keybind
              • Colorpicker
              • Dropdown
              • Header
              • Paragraph
              • Label
              • Sub Label
              • Divider
              • Spacer
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Loading Maclib
  3. Creating a window

Prompting a dialog

PreviousDisplaying a notificationNextCreating a tab group

Last updated 7 months ago

Was this helpful?

Window:Dialog({
    Title <string>
    Description <string>
    Buttons <table: <...table: Name, Callback>>
})

Functions

:UpdateTitle(<string>)
:UpdateDescription(<string>)
:Cancel()

Example

Window:Dialog({
    Title = "Kuzu Hub",
    Description = "Are you sure? This is not reversable and can get you banned in some up to date servers.",
    Buttons = {
        {
            Name = "Confirm",
            Callback = function()
            	print("Confirmed!")
            end,
        },
        {
            Name = "Cancel"
        }
    }
})