Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

A list page

Use the card for any list page of records, so the heading, count, actions and table look the same everywhere.

Tickets with search
The person column uses an app-person cell.
Tickets 2
Open requests from staff
TicketRaised byStatus
Laptop will not start
Asha Rao
Open
VPN access
Vikram Singh
Waiting
Show code
<app-list-card title="Tickets" subtitle="Open requests from staff" count="2">
    <app-list-card-actions>
        <app-button left-icon="plus">New ticket</app-button>
    </app-list-card-actions>
    <app-list-card-filters>
        <app-input name="q" placeholder="Search tickets" aria-label="Search tickets" />
    </app-list-card-filters>
    <app-data-table aria-label="Tickets">…</app-data-table>
</app-list-card>

Lists without a table

Use padding md for a list of rows or a short paragraph, so its content keeps space from the card edge.

Padded body
Notes

No notes yet. Notes you add show here.

Show code
<app-list-card title="Notes" padding="Md">
    <p class="mb-0">No notes yet. Notes you add show here.</p>
</app-list-card>

Every option

Every value of every prop, one cell each.

title: any text

title="Tickets"
Tickets
Laptop will not start
title not set (default): no heading row
Laptop will not start

subtitle: any text

subtitle="Open requests from staff"
Tickets
Open requests from staff
Laptop will not start
subtitle not set (default): the heading stands alone
Tickets
Laptop will not start

count: a number

count="2"
Tickets 2
Laptop will not start
count="0": the badge shows 0
Tickets 0
count not set (default): no badge beside the heading
Tickets
Laptop will not start

padding: none | md

padding="none" (default): the table runs edge to edge
Tickets
Laptop will not start
padding="md": the body keeps space from the card edge
Notes

No notes yet. Notes you add show here.

actions: child tag

<app-list-card-actions>: a New button, right-aligned in the header
Tickets
Laptop will not start
no <app-list-card-actions> (default): the header has no actions
Tickets
Laptop will not start

filters: child tag

<app-list-card-filters>: a search row between the header and the table
Tickets
Laptop will not start
no <app-list-card-filters> (default): the table sits under the header
Tickets
Laptop will not start

Reference

Try every prop, read the full list, and check keyboard and screen reader behaviour.

none md
shown hidden
shown hidden
Tickets 2
Open requests from staff
TicketStatus
Laptop will not startOpen
VPN accessWaiting
Razor, the same props
<app-list-card title="Tickets" subtitle="Open requests from staff" count="2">
    <app-list-card-actions>…</app-list-card-actions>
    <app-list-card-filters>…</app-list-card-filters>
    …
</app-list-card>

6 props.

Less common 6 props

PropTypeDefaultDescription
titledefault - string - The list's heading.
subtitledefault - string - A line under the heading.
countdefault - int? - How many records the list holds, shown beside the heading. Empty shows none.
paddingdefault none none | md none none: the table runs edge to edge. md: body padding, for a list that is not a table. Any other value throws.
actionsdefault - <app-list-card-actions> - A child tag, not an attribute: the list's actions (a New button, an export), right-aligned in the header. It needs a direct parent <app-list-card>.
filtersdefault - <app-list-card-filters> - A child tag, not an attribute: the filter row between the header and the table. It needs a direct parent <app-list-card>.