Creates a empty table widget with the given parent.
Optional parent: WidgetProtected m_Private m_Protected m_Protected m_Private m_Protected m_Private m_Private m_Returns true if events are blocked; otherwise returns false.
If blocked is true, then events emitted by this event watcher will be blocked, meaning that emitting an event will not trigger any callback functions that are bound to it.
Returns the number of columns.
Sets the number of columns in this table widget to columnCount.
Returns the native DOM of this widget, user can directly manipulate the native DOM.
Returns whether this widget or its parent chain is enabled or not. By default, the value of this property is true.
Sets whether this widget is enabled or not. Disabling a widget implicitly disables all its children, it is not possible to explicitly enable a child widget while its parent widget remains disabled.
Returns the header view of this table widget.
Returns whether the table widget is visible or not.
Sets whether the table widget is visible or not.
Returns the height of this widget.
Sets the height of this widget to the given height.
The unit of height is px.
Returns the id of this widget.
Set the id of this widget to the given id. The id is utilized to set the style of the widget. See also css
Returns the left coordinate of this widget within its parent widget.
Sets the left coordinate of this widget within its parent widget.
The unit of left is px.
Sets the padding of this scroll area to padding.
Returns the parent of this widget, or undefined if it does not have any parent widget.
Sets the parent of the widget to the given parent. If the new parent widget is the old parent widget, this function does nothing.
Returns the number of rows.
Sets the number of rows in this table widget to rowCount.
Returns the selection mode of the table widget.
Sets the selection mode of the table widget to mode.
Returns the style of this widget.
Returns the header labels of the table widget.
Sets the header labels of the table widget using titles.
Returns the tooltip of this widget. When the mouse hovers over the widget for a period of time(it can be set by Tooltip::WakeUpDelay), a message will automatically pop up, and it will disappear automatically when the mouse moves away. By default, the value of this property is an empty string.
Sets the tooltip of this widget to the given tooltip.
Returns the top coordinate of this widget within its parent widget.
Sets the top coordinate of this widget to the given top.
The unit of top is px.
Returns whether this widget or its parent chain is visible or not. By default, the value of this property is true.
Sets whether this widget is visible or not. If an ancestor widget is not visible, the widget won't become visible until all its ancestors are visible.
Returns the width of this widget.
Sets the width of this widget to the given width.
The unit of width is px.
Static senderReturns the object that sent the event.
Adds the attribute of this widget. The attribute is utilized to set the style. See also css
Adds the class name of this widget. The class name is utilized to set the style. See also css. All widgets with the same class name use the same style.
Protected attachAdds a callback function that's going to be called when the event is emitted.
Rest ...data: EventMap[K]Rest ...data: any[]Protected cellRemoves all items in the table widget, this will also remove all header items. If you don't want to remove all header items, use clearContents.
Removes all items excluding header items from the table widget. See also clear.
Delegates this event watcher to handle the given watcher's event named name.
Destroys the widget, all the widget's children are destroyed first. The widget is destroyed when it's parent is destroyed. When the widget is destroyed, make sure to release all resources, such as timers, etc. Releases the resources in the protected function free(), and the system will call this function automatically when the parent widget or itself is destroyed. See also free.
Protected detachEmits an arbitrary set of arguments to the callback function which is bound to the event named name.
Rest ...data: EventMap[K]Rest ...data: any[]Protected freeFrees the resources.See also destroy.
Inserts the child widget at index in the list of children.
Scrolls this scroll area if necessary to ensure that the widget is visible. By default, scroll animation is closed.
Sets the item of the given row and column to item.
Sets whether the scroll area uses flex layout. See also setFlex
Optional alignItem: "center" | "inherit" | "stretch" | "flex-start" | "flex-end" | "initial" | "baseline"Optional spacing: numberRemoves the specified watcher for the event named name.
Generated using TypeDoc
The TableWidget class provides an item-based table view.