Current section

Files

Jump to
noora docs components tablecolumn.md
Raw

docs/components/tablecolumn.md

<!-- Generated by scripts/generate-web-components.js. Do not edit directly. -->
# TableColumn
Describes one declarative table column.
```html
<noora-table-column name="project">Project</noora-table-column>
```
## Attributes
| Attribute | Type or allowed values | Default | Description |
| --- | --- | --- | --- |
| `name` | `string` | `""` | Sets the column key. |
| `label` | `string` | `""` | Sets the heading instead of using text content. |
| `icon` | `string` | None | Shows an icon in the heading. |
| `sort-order` | `asc`, `desc` | None | Shows the current sort direction. |
| `format` | `date`, `number` | None | Formats property-driven cell values. |
## Slots
| Slot | Description |
| --- | --- |
| `default` | The column heading. |
## Column
Describe one table column.
```html
<noora-table-column name="project">Project</noora-table-column>
```