lib-ScrollingTable

Addons
23,102 Downloads Last Updated: Apr 26, 2021 Game Version: 8.0.1

API

ClearSelection(self)

Clear the currently selected row.
You should not need to refresh the table.

Parameters

self

Usage

st:ClearSelection()


CompareSort(self, rowa, rowb, sortbycol)

CompareSort function used to determine how to sort column values.
Can be overridden in column data or table data.

Parameters

self
rowa
rowb
sortbycol

Usage

used internally.

See also

  • Core.lua


DoCellUpdate(rowFrame, cellFrame, data, cols, row, realrow, column, fShow, table, ...)

Cell update function used to paint each cell.
Can be overridden in column data or table data.

Parameters

rowFrame
cellFrame
data
cols
row
realrow
column
fShow
table
...

Usage

used internally.

See also


EnableSelection(self, flag)

Turn on or off selection on a table according to flag.
Will not refresh the table display.

Parameters

self
flag

Usage

st:EnableSelection(true)


GetCell(self, row, col)

Returns the cell data of the given row from the given row and column index

Parameters

self
row
col

Usage

used internally.


GetRow(self, realrow)

Returns the data row of the table from the given data row index

Parameters

self
realrow

Usage

used internally.


GetSelection(self)

Gets the currently selected to row.
Return will be the unaltered index of the data row that is selected.

Parameters

self

Usage

st:GetSelection()	


Hide(self)

Used to hide the scrolling table when shown.

Parameters

self

Usage

st:Hide()


IsRowVisible(self, realrow)

Checks if a row is currently being shown

Parameters

self
realrow

Usage

st:IsRowVisible(realrow)


RegisterEvents(self, events, fRemoveOldEvents)

Set the event handlers for various ui events for each cell.

Parameters

self
events
fRemoveOldEvents

Usage

st:RegisterEvents(events, true)	

See also


SetData(self, data, isMinimalDataformat)

Sets the data for the scrolling table

Parameters

self
data
isMinimalDataformat

Usage

st:SetData(datatable)

See also


SetDisplayCols(self, cols)

Set the column info for the scrolling table

Parameters

self
cols

Usage

st:SetDisplayCols(cols)	

See also


SetDisplayRows(self, num, rowHeight)

Set the number and height of displayed rows

Parameters

self
num
rowHeight

Usage

st:SetDisplayRows(10, 15)	


SetFilter(self, Filter)

Set a display filter for the table.

Parameters

self
Filter

Usage

st:SetFilter( function (self, ...) return true end )

See also


SetHighLightColor(self, frame, color)

Set the row highlight color of a frame ( cell or row )

Parameters

self
frame
color

Usage

st:SetHighLightColor(rowFrame, color)	

See also


SetSelection(self, realrow)

Sets the currently selected row to 'realrow'.
Realrow is the unaltered index of the data row in your table. You should not need to refresh the table.

Parameters

self
realrow

Usage

st:SetSelection(12)	


Show(self)

Used to show the scrolling table when hidden.

Parameters

self

Usage

st:Show()


SortData(self)

Resorts the table using the rules specified in the table column info.

Parameters

self

Usage

st:SortData()	

See also



Comments

  • To post a comment, please or register a new account.
Posts Quoted: