On this page
@addTagHelper *, Webority.Ui.RazorA 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
| Ticket | Raised by | Status |
|---|---|---|
| Laptop will not start | Open | |
| VPN access | Waiting |
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.
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.
6 props.
Less common 6 props
| Prop | Type | Default | Description |
|---|---|---|---|
| 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>. |