XLQP Gen1
ElementsNavigation & windows

AddTableContents

Adds a structured table-content view with configurable columns and rows.

AddTableContents

What it does

Adds a structured table-content view with configurable columns and rows.

When to use it

Use it for tabular information that does not need the full searchable data-table behavior.

ElementFunction:AddTableContents(TableConfig)

local KeyInformationTable = AITab:AddTableContents({
	Name = "Key Information",
	Description = "A table showing your key information.",
	Height = 170,
	ConfigCloud = true,
	ConfigCloudKey = "KeyInformationTable",
	Columns = {
		{Name = "Discord ID", Key = "DiscordId", Width = 155},
		{Name = "Executions", Key = "Executions", Width = 120},
		{Name = "Seconds Left", Key = "SecondsLeft", Width = 135},
		{Name = "User Note", Key = "UserNote", Width = 155},
		{Name = "Script Version", Key = "Version", Width = 130}
	},
	Rows = {
		{DiscordId = "98765432112...", Executions = 10234, SecondsLeft = "inf", UserNote = "Not specified", Version = "1.0.0"},
		{DiscordId = "12345678901...", Executions = 428, SecondsLeft = 86400, UserNote = "Beta tester", Version = "1.0.0"}
	}
})

Behavior and return value

Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.