RecordList
Entity rows with a trailing value.
On this page
Examples
Invoices
Razor
<div class="w-full max-w-2xl">
<KlyRecordList Title="Invoices" Count="3" Max="2" Step="2" Surface="KlySurface.Bordered" Items="@(new[]
{
new KlyRecordItem("Acme Annual Plan") { Reference = "INV-42", Href = "#", AvatarText = "AC", Trailing = "€12,000", TrailingCaption = "Nov 20", Badge = new KlyBadgeItem("Paid") { Color = KlyColor.Success } },
new KlyRecordItem("Globex Seats") { Reference = "INV-43", Description = "12 seats", DescriptionIcon = "users", AvatarText = "GX", Trailing = "€1,080", TrailingCaption = "Nov 22", Badge = new KlyBadgeItem("Due") { Color = KlyColor.Warning } },
new KlyRecordItem("Initech Support") { Reference = "INV-44", Icon = "life-buoy", Trailing = "€240", TrailingCaption = "Nov 25" },
})" />
</div>API
KlyRecordList
A list of entity rows, each with an image, avatar or icon, a reference, a title, a secondary line, badges and a trailing value.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
Class |
string |
Classes added to the root element, merged last so they win over the theme. | |
Count |
int? |
A count shown beside the title, formatted with the format culture of the locale. | |
ImageOptions |
KlyImageOptions |
Image settings forwarded to the KlyImage of the rows that have an ImageSrc . | |
Items |
IReadOnlyList |
The rows, as KlyRecordItem . | |
Loading |
bool |
false |
Shows a skeleton placeholder instead of the content. |
Max |
int? |
The number of rows shown before a Show more button (all rows when null ). | |
Step |
int? |
The number of rows each click on Show more reveals (all the remaining ones when null ). | |
Surface |
KlySurface? |
The surface treatment. Bordered when not set. Values: Plain, Muted, Bordered, Elevated. |
|
Title |
string |
The title above the rows. | |
Ui |
RecordListUi |
Per-instance class overrides of the slots of the record list, see RecordListUi . They are merged after the theme and the Class parameter wins on the root slot. |
Ui slots
Ui takes a RecordListUi with one class string per slot, merged after the theme.
| Slot | Styles |
|---|---|
Root |
Classes merged into the root slot of KlyRecordList , after the theme and the app configuration. |
Header |
Classes merged into the header slot of KlyRecordList , after the theme and the app configuration. |
Title |
Classes merged into the title slot of KlyRecordList , after the theme and the app configuration. |
Count |
Classes merged into the count slot of KlyRecordList , after the theme and the app configuration. |
Item |
Classes merged into the item slot of KlyRecordList , after the theme and the app configuration. |
Lead |
Classes merged into the lead slot of KlyRecordList , after the theme and the app configuration. |
Image |
Classes merged into the image slot of KlyRecordList , after the theme and the app configuration. |
Avatar |
Classes merged into the avatar slot of KlyRecordList , after the theme and the app configuration. |
AvatarIcon |
Classes merged into the avatarIcon slot of KlyRecordList , after the theme and the app configuration. |
Body |
Classes merged into the body slot of KlyRecordList , after the theme and the app configuration. |
Reference |
Classes merged into the reference slot of KlyRecordList , after the theme and the app configuration. |
Name |
Classes merged into the name slot of KlyRecordList , after the theme and the app configuration. |
Link |
Classes merged into the link slot of KlyRecordList , after the theme and the app configuration. |
Meta |
Classes merged into the meta slot of KlyRecordList , after the theme and the app configuration. |
MetaIcon |
Classes merged into the metaIcon slot of KlyRecordList , after the theme and the app configuration. |
MetaText |
Classes merged into the metaText slot of KlyRecordList , after the theme and the app configuration. |
Trail |
Classes merged into the trail slot of KlyRecordList , after the theme and the app configuration. |
Trailing |
Classes merged into the trailing slot of KlyRecordList , after the theme and the app configuration. |
TrailingBlock |
Classes merged into the trailingBlock slot of KlyRecordList , after the theme and the app configuration. |
TrailingCaption |
Classes merged into the trailingCaption slot of KlyRecordList , after the theme and the app configuration. |
More |
Classes merged into the more slot of KlyRecordList , after the theme and the app configuration. |
MoreIcon |
Classes merged into the moreIcon slot of KlyRecordList , after the theme and the app configuration. |
Skeleton |
Classes merged into the skeleton slot of KlyRecordList , after the theme and the app configuration. |