Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

Last N days

Use a short row of day counts for a report that covers a recent window, such as the last 30 days.

7, 30 or 90 days
Show code
<form method="get">
    <app-period-picker name="days" kind="Days" value="@Model.Days" options="7,30,90" />
</form>

Month

Pick one calendar month for a monthly report, with arrows to step back and forward.

A month
Oct-2026
Show code
<app-period-picker name="month" kind="Month" value="@Model.Month" />

Financial year

Pick an Indian financial year, from 1 April to 31 March, for a yearly report.

Three financial years
FY 2026-27FY 2025-26FY 2024-25
Show code
<app-period-picker name="fy" kind="Fy" value="@Model.Fy" />

Quarter

Pick a financial-year quarter, where Q1 is April to June, to compare one quarter with another.

A quarter
Q3 FY 2026-27Q2 FY 2026-27Q1 FY 2026-27Q4 FY 2025-26Q3 FY 2025-26Q2 FY 2025-26Q1 FY 2025-26Q4 FY 2024-25Q3 FY 2024-25Q2 FY 2024-25Q1 FY 2024-25
Show code
<app-period-picker name="quarter" kind="Quarter" value="@Model.Quarter" />

PeriodRange range = PeriodValue.ParseQuarter(Quarter);   // range.FromDate, range.ToDate

Date range

Pick any start and end day, with optional quick ranges, when no fixed period fits.

A custom range
Show code
<app-period-picker kind="Range" from-name="since" to-name="until" from="@Model.Since" to="@Model.Until" />

Every option

Every value of every prop, one cell each.

kind: all five

kind="days" (default)
kind="month"
Nov-2026
kind="fy"
FY 2026-27FY 2025-26FY 2024-25
kind="quarter"
Q3 FY 2026-27Q2 FY 2026-27Q1 FY 2026-27Q4 FY 2025-26Q3 FY 2025-26Q2 FY 2025-26Q1 FY 2025-26Q4 FY 2024-25Q3 FY 2024-25Q2 FY 2024-25Q1 FY 2024-25
kind="range"

name: the posted field

name="period", the field it posts as

value: the posted form

value unset (default)
value="90", kind days
value="2026-10", kind month
Oct-2026
value="2026", kind fy
FY 2026-27FY 2025-26FY 2024-25
value="2026-Q1", kind quarter
Q3 FY 2026-27Q2 FY 2026-27Q1 FY 2026-27Q4 FY 2025-26Q3 FY 2025-26Q2 FY 2025-26Q1 FY 2025-26Q4 FY 2024-25Q3 FY 2024-25Q2 FY 2024-25Q1 FY 2024-25

options: the day counts

options="7,30,90" (default)
options="7,14,30,60,90" (five: a segmented row)
options="7,14,30,60,90,180" (six: a select)
7 days14 days30 days60 days90 days180 days

years: financial years back

years="1"
FY 2026-27
years="3" (default)
FY 2026-27FY 2025-26FY 2024-25
years="5"
FY 2026-27FY 2025-26FY 2024-25FY 2023-24FY 2022-23

label: the accessible name

label="Reporting period", read aloud, not shown
label="Period" (default)

auto-submit: submit on change

auto-submit="true" (default)
auto-submit="false"

from-name: the first day's field

from-name="start", the field the first day posts as

to-name: the last day's field

to-name="end", the field the last day posts as

from: the first day

from="2026-04-01"

to: the last day

to="2026-06-30"

presets: the quick ranges

presets="today,thisMonth"
presets="today,last7Days,thisMonth,lastMonth,thisFinancialYear"

Reference

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

days month fy quarter range
none today,last7Days,thisMonth,lastMonth,thisFinancialYear today,thisMonth
on off
Razor, the same props
<app-period-picker name="period" kind="Days" value="7" />

12 props.

Less common 12 props

PropTypeDefaultDescription
kinddefault days days | month | fy | quarter | range days Which control to draw. Any other value throws.
namedefault - string - The field the period posts as. Required for every kind but range.
valuedefault - string - The selected value, in the kind's posted form (30, 2026-10, 2026, 2026-Q1). Unset picks the current period; for days, the first option. A value that is not one of the choices throws.
optionsdefault 7,30,90 string 7,30,90 days: the day counts offered, as a comma list of whole numbers. Up to five show as a segmented row, more as a select.
yearsdefault 3 int 3 fy and quarter: how many financial years back the choices go, the current one included.
labeldefault Period string Period The control's accessible name.
auto-submitdefault true bool true Submit the form when the period changes. An Apply button shows only without script.
from-namedefault - string - range: the field the first day posts as. Required for range.
to-namedefault - string - range: the field the last day posts as. Required for range.
fromdefault - string - range: the selected first day, yyyy-MM-dd.
todefault - string - range: the selected last day, yyyy-MM-dd.
presetsdefault - string - range: the quick ranges the picker offers, in the date-range picker's own form: names such as today,last7Days,thisMonth, or a JSON array of { label, start, end }.