Nighty Docs
  • About Nighty
  • Getting Started
    • First Launch
    • Usage Guide
  • Custom Scripts
    • Scripting Reference
  • 🛠️Troubleshooting
    • The application did not respond / Unknown Integration
    • Common solutions to all issues
    • Unable to launch
    • App is just a white box, UI not appearing / looking weird
    • Retrieving License Key
    • Flagged key
    • Rich Presence doesn't show up
  • UI SCRIPTING
    • API Reference
      • Tab
      • CardContainer
      • Card
      • Group
      • UI Elements
        • Text
        • Button
        • Input
        • Image
        • Toggle
        • Select
        • Checkbox
        • Table
Powered by GitBook
On this page
  • class UI.Select
  • Events

Was this helpful?

  1. UI SCRIPTING
  2. API Reference
  3. UI Elements

Select

PreviousToggleNextCheckbox

Last updated 4 months ago

Was this helpful?

class UI.Select

This documentation is a work in progress. UI scripting is a new feature, and additional content is still being added. Stay tuned for updates!

Attribute
Value

label

any string This value is required.

items

a list of items to display. Example: [{

"id": "one",

"title": "Item 1",

"iconUrl": "https://i.com/image.png"

}]

id: Must be unique. Duplicate IDs can cause unexpected behavior and may result in incorrect UI rendering. Ensure each ID is distinct to avoid issues.

id & title are required, iconUrl is optional

Default: None

selected_items

a list of (item) ids to display. Default: None

disabled_items

a list of (item) ids to disable. Default: None

mode

"single"

"multiple" Default: "single"

description

any string Default: None

loading

True | False Default: False

disabled

True | False Default: False

invalid

True | False Default: False

error_message

any string Default: None

full_width

True | False Default: False

margin

See . Default: "m-0"

visible

See . Default: True

Events

Event
Arguments
Description

onChange

selected_items (list)

Triggered when the selection changes.

Margin
Visible