On this page
@addTagHelper *, Webority.Ui.RazorEmpty table
Use the empty row when a plain table has no rows yet; set colspan to the column count.
With an action
| Ticket | Status |
|---|
No tickets yet
Row actions
Group the icon actions at the end of each row, so every row lines up.
Edit and delete
| Ticket | Status | |
|---|---|---|
| Laptop will not start | Open |
|
Every option
Every value of every prop, one cell each.
colspan: the columns it spans
colspan="1"
No tickets yet
colspan="3"
No tickets yet
icon: the glyph in the bubble
icon="inbox"
No tickets yet
icon="file-text"
No tickets yet
icon="users"
No tickets yet
icon="search"
No tickets yet
icon="cloud"
No tickets yet
illustration: a drawing in place of the icon
illustration="no-results"
No results
illustration="no-data"
No data yet
illustration="empty-inbox"
No tickets yet
illustration="no-notifications"
No notifications
illustration="no-files"
No files yet
illustration="no-access"
No access
illustration="offline"
You are offline
illustration="error"
Tickets did not load
title: the heading
title="No tickets yet"
No tickets yet
description: the body copy
description="New tickets show here."
No tickets yet
icon-size: the glyph size in px
icon-size="24"
No tickets yet
icon-size omitted: the empty state's own size
No tickets yet
Reference
Try every prop, read the full list, and check keyboard and screen reader behaviour.
6 props.
Less common 6 props
| Prop | Type | Default | Description |
|---|---|---|---|
| colspandefault - | int | - | How many columns the table has; the cell spans them all. Required, above 0. |
| icondefault - | string | - | Library icon for the bubble. |
| illustrationdefault - | string | - | A decorative drawing by name, as on <app-empty-state>. It replaces the icon. |
| titledefault - | string | - | The heading of the empty state. |
| descriptiondefault - | string | - | Body copy. |
| icon-sizedefault - | int | - | Glyph size in px. Without it the empty state's own size applies. |