The ui5-table-row component represents a row in the ui5-table.
ES6 Module Import
import "@ui5/webcomponents/dist/TableRow.js";
Properties
interactive
Description Defines the interactive state of the row. Type booleanDefault false
movable
Description Defines whether the row is movable. Type booleanDefault false Since 2.6.0
navigated
Description Defines the navigated state of the row. Type booleanDefault false
position
Description Defines the 0-based position of the row related to the total number of rows within the table when the ui5-table-virtualizer feature is used. Type number | undefinedDefault undefined Since 2.5.0
rowKey
Description Unique identifier of the row.Note: For selection features to work properly, this property is mandatory, and its value must not contain spaces. Type string | undefinedDefault undefined
Slots
actions
Description Defines the actions of the component.Note: Use ui5-table-row-action or ui5-table-row-action-navigation for the intended design. Type Array<TableRowActionBase>Since 2.7.0
default
Description Defines the cells of the component.Note: Use ui5-table-cell for the intended design. Type Array<TableCell>
Events
click
Description Fired when the row is activated by the user via click or Enter key.Note: This event is not fired when the row has behavior="RowOnly" selection. In that case, use the selection component's change event instead. Type CustomEventSince 2.9.0 Bubbles Yes Cancelable No
Methods
No methods available for this component.
CSS Parts
No CSS parts available for this component.
CSS Custom States
No CSS custom states available for this component.
Interactive Rows
Create an interactive table by marking ui5-table-row components as interactive. Pressing on an interactive row
will fire the row-click event.
Download Open in Playground Edit
Row Click Event
The click event is fired directly on ui5-table-row when an interactive row is activated via mouse click or keyboard Enter.
This allows attaching click handlers directly on row elements, which is particularly useful for framework wrappers like React.
Download Open in Playground Edit
Movable Rows
Adding the movable property enables the ui5-table-row for drag and drop operations.
Download Open in Playground Edit