class Table
- Extends:
- UIComponent, ContainerComponent, ScrollableComponent
Description:
A Table UI component displays data in a structured grid of rows and columns, making it easy to read, sort, and interact with.
It supports features like column resizing, column reordering, sorting, filtering, multiple data types and more.
Column object format is shown in example below. Rows are arrays of values (cells), each value for a corresponding column. Row cell data type must match the data type required for it's column type.
// NOTE: When adding a new column, only "text" is required for the column, other properties are optional.
Constructor
constructor([text])
Create Table UI component.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
String |
Text value held by the component. It can be used as a Tab text when the Table is added to Tabs component. |
Members
- [ readonly ] columnCount
- [ readonly ] id
- [ readonly ] isContainer
- [ readonly ] parent
- [ readonly ] rowCount
- [ readonly ] screenPosition
- [ readonly ] selectedRows
- [ readonly ] window
Methods
From this class:
- addColumn()
- addRow()
- autoResizeColumns()
- canReorderColumns()
- cellAt()
- cellBounds()
- clicksToEdit()
- column()
- columns()
- columnVisible()
- editingCell()
- filter()
- findRows()
- gridColor()
- gridLines()
- headerEnabled()
- headerSize()
- moveColumn()
- onColumnEvents()
- onRowEvents()
- onSort()
- removeColumn()
- removeRow()
- row()
- rowBackground()
- rowHeight()
- rows()
- rowStyle()
- scrollToIndex()
- selectAll()
- selectedCell()
- selectedIndex()
- selectedValue()
- selection()
- selectionMode()
- sortOrder()
- triStateSorting()
- valueAt()
Inherited from UIComponent:
- addTo()
- anchor()
- background()
- border()
- bottom()
- center()
- color()
- contextMenu()
- cursor()
- destroy()
- dragAction()
- dragData()
- dragDataType()
- dropAction()
- dropDataType()
- dropMode()
- emit()
- emitFocusKeyEvents()
- enabled()
- focusable()
- focused()
- font()
- getAncestor()
- height()
- hide()
- icon()
- index()
- isInside()
- layer()
- maxSize()
- minSize()
- move()
- onAction()
- onAncestorEvents()
- onChange()
- onComponentEvents()
- onDispose()
- onDragEvents()
- onDropEvents()
- onError()
- onFocusEvents()
- onKey()
- onMouseEvents()
- onMouseMotion()
- onMouseWheel()
- onPropertyChange()
- onShortcut()
- opacity()
- position()
- remove()
- right()
- shortcuts()
- size()
- snapshot()
- text()
- tooltip()
- update()
- verifyComponent()
- visible()
- width()
- x()
- y()
