Represents tabular data presented in a two-dimensional format comprised of rows and columns of cells. Table should not be confused with a DataGrid, which has more advanced functionality.
import '@ods/components/web.table';Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.
This component is still in development and cannot be imported at this time.
Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.
| Property/Attribute | Reflects | Type | Default |
|---|---|---|---|
columns | ColumnDef<unknown, any>[] | [] | |
data | RowData[] | [] |
| Name | Description |
|---|---|
| base | The table component's base wrapper. |
| header | The table component's header wrapper. |
| header-row | The table component's header row wrapper. |
| body | The table component's body wrapper. |