Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

Empty table

Use the empty row when a plain table has no rows yet; set colspan to the column count.

With an action
TicketStatus
No tickets yet
New tickets show here.
Show code
<app-table-empty-row colspan="3" icon="inbox" title="No tickets yet" description="New tickets show here.">
    <app-button>New ticket</app-button>
</app-table-empty-row>

Row actions

Group the icon actions at the end of each row, so every row lines up.

Edit and delete
TicketStatus
Laptop will not start Open
Show code
<app-row-actions>
    <app-row-action icon="pencil" label="Edit" />
    <app-row-action icon="trash" label="Delete" tone="AppRowActionTone.Danger" />
</app-row-actions>

Every option

Every value of every prop, one cell each.

colspan: the columns it spans

colspan="1"
No tickets yet
New tickets show here.
colspan="3"
No tickets yet
New tickets show here.

icon: the glyph in the bubble

icon="inbox"
No tickets yet
New tickets show here.
icon="file-text"
No tickets yet
New tickets show here.
icon="users"
No tickets yet
New tickets show here.
icon="search"
No tickets yet
New tickets show here.
icon="cloud"
No tickets yet
New tickets show here.

illustration: a drawing in place of the icon

illustration="no-results"
No results
Try adjusting your filters.
illustration="no-data"
No data yet
New tickets show here.
illustration="empty-inbox"
No tickets yet
New tickets show here.
illustration="no-notifications"
No notifications
New alerts show here.
illustration="no-files"
No files yet
Uploaded files show here.
illustration="no-access"
No access
Ask an admin for access.
illustration="offline"
You are offline
Reconnect to see tickets.
illustration="error"
Tickets did not load
Try again in a moment.

title: the heading

title="No tickets yet"
No tickets yet

description: the body copy

description="New tickets show here."
No tickets yet
New tickets show here.

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.

(none) inbox file-text users search cloud
(none) no-results no-data empty-inbox no-notifications no-files no-access offline error
TicketStatus
No tickets yet
New tickets show here.
Razor, the same props
<app-table-empty-row colspan="3" icon="inbox" title="No tickets yet" description="New tickets show here." />

6 props.

Less common 6 props

PropTypeDefaultDescription
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.