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.Table
  • Events

Was this helpful?

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

Table

PreviousCheckbox

Last updated 5 months ago

Was this helpful?

class UI.Table

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

columns

a list of columns (dict) column properties: type: "tag", "text" or "button" label: any string buttons: a list of buttons (dict)

buttons properties: label: any string color: default | danger onClick: func This value is required.

rows

a list of rows (dict)

row structure (dict):

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.

cells: a list of cells that match the structure of columns

cell structure (dict):

tag: text, color

text: text, subtext, imageUrl

button: {}

Default: []

search

True | False Default: True

items_per_page

any int Default: 50

selectable

True | False Default: False

visible

See . Default: True

Events

Event
Arguments
Description

onSelectionChange

selected_rows (list of row ids)

Triggered when the selection changes.

Visible