Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

A detail page

Use the detail layout for a page that shows one record with facts beside it, such as a status or dates.

Invoice INV-1042
decimals="2" shows the paise; a negative amount keeps its sign.
Invoice INV-1042
Customer
Orient Bell Ltd
Phone
Not set
Multiline
Flat 4B, Sector 18
Gurugram, Haryana
Amount
₹1,50,000.50
Rounded
₹1,50,001
Credit note
−₹2,500
Discount
-
Show code
<app-detail-layout>
    <app-detail-main>
        <app-card title="Invoice INV-1042">
            <app-descriptions columns="2">
                <app-description label="Customer"><app-value value="Orient Bell Ltd" /></app-description>
                <app-description label="Amount"><app-money paise="new MinorUnits(15000050)" decimals="2" /></app-description>
            </app-descriptions>
        </app-card>
    </app-detail-main>
    <app-detail-aside>
        <app-card title="Status">…</app-card>
    </app-detail-aside>
</app-detail-layout>

Every option

Every value of every prop, one cell each.

app-value value: any string

value="Orient Bell Ltd"
Orient Bell Ltd

app-value empty-text: any string

empty-text="Not set" (default)
Not set

app-value multiline: true or false

multiline="false" (default)
Flat 4B, Sector 18&#10;Gurugram, Haryana
multiline="true"
Flat 4B, Sector 18&#10;Gurugram, Haryana

app-money paise: an amount or null

paise="15000050"
₹1,50,001
paise="null" (shows the empty placeholder)
-

app-money decimals: 0 or 2

decimals="0" (default)
₹1,50,001
decimals="2"
₹1,50,000.50

Reference

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

<app-detail-layout>, <app-detail-main> and <app-detail-aside> take no attributes: the main and aside tags need the layout as their direct parent. The two value tags take:

4 props.

Less common 4 props

PropTypeDefaultDescription
app-value valuedefault - string - The value to show, HTML-encoded.
app-value empty-textdefault Not set string Not set What to show, muted, when the value is null or blank.
app-money paisedefault - MinorUnits? - The amount in paise. Null shows the empty placeholder.
app-money decimalsdefault 0 0 | 2 0 2 shows the paise, as on an invoice.