Skip to content
Reference API reference

Klyroo.Dashboard API reference

Every public type and member, generated from the compiled assemblies and their XML documentation.

On this page

Klyroo.Dashboard.Core

Static classes and extensions (2) · Classes (5) · Records (15) · Interfaces (2) · Enums (19)

Static classes and extensions

DashboardFormat

Klyroo.Dashboard · service

Number, delta, relative-time, comparison-range and CSV helpers. Numbers use the invariant culture unless you pass one; the components pass the format culture of Klyroo.UI.

Field Type Description
const MissingValue = "—" string The placeholder shown for a missing, NaN or infinite number: an em dash.
Method Returns Description
static ExportCsv(DashboardDataTable table, CultureInfo? culture = null) string Serializes a table to CSV. The text starts with a UTF-8 byte order mark, uses ; as delimiter when the culture has a comma as decimal separator and , otherwise, and ends every line, the header included, with \r\n. Headers and text cells are quoted. A cell of a numeric column that reads as a number is written bare, with a decimal comma instead of the invariant point when the delimiter is ;, unless it contains the delimiter, a quote or a line break, in which case it is quoted too. Any other cell that starts with =, +, -, @, a tab or a carriage return gets a leading apostrophe, so that a spreadsheet does not run it as a formula.
static Format(double? value, DashboardFormatPreset preset = Number, CultureInfo? culture = null) string Formats a number with a preset. A null, NaN or infinite value gives DashboardFormat.MissingValue.
static FormatCompact(double? value, CultureInfo? culture = null) string Formats a number with the K, M and B suffixes and at most one decimal. The suffix is chosen after rounding, so 999,999 gives 1M, not 1000K.
static FormatCurrency(double? value, string currencySymbol = "€", CultureInfo? culture = null) string Formats an amount with the currency symbol in front and at most two decimals. The symbol position does not follow the culture.
static FormatInvariant(double? value) string? Writes a number as the cells of a DashboardDataTable carry it: in the invariant culture, without grouping and with every significant digit (12600, -4.25), so that it keeps full precision. DashboardFormat.ExportCsv writes it with a decimal comma for the cultures that use one.
static FormatRelativeTime(DateTimeOffset? value, DateTimeOffset? now = null) string Describes how long ago something happened: just now under 45 seconds, then minutes, hours, yesterday, days under a week, and an ISO date (yyyy-MM-dd) beyond that. The text is English: pass DashboardRelativeTimeTexts to the overload for another language.
static FormatRelativeTime(DateTimeOffset? value, DateTimeOffset? now, DashboardRelativeTimeTexts texts) string Describes how long ago something happened like DashboardFormat.FormatRelativeTime, with the wording of texts. Past a week the text is still an ISO date.
static ResolveComparisonRange((DateTimeOffset, DateTimeOffset)? range, DashboardComparisonMode comparison) (DateTimeOffset, DateTimeOffset)? Computes the comparison range of a date range. DashboardComparisonMode.Previous gives the range of the same number of days that ends the day before the start. DashboardComparisonMode.Year shifts both bounds back one year, clamping February 29.
static ResolveFileName(string? title, string extension = "csv") string Turns a title into a file name: lowercase, accents removed, anything that is not a letter or digit collapsed into one hyphen. Falls back to dashboard when nothing is left.

DashboardTableColumn

Klyroo.Dashboard · service

Creates the columns of KlyDashboardTable<TRow>. The column reads its value from the row with a delegate, so nothing is looked up by name and a wrong type does not compile.

Method Returns Description
static For<TRow, TValue>(string key, string label, Func<TRow, TValue> value, DashboardFormatPreset format = Number, DashboardTableColumnKind? kind = null, bool invertDelta = false, bool sortable = true) DashboardTableColumn<TRow> Creates a column that shows value of each row.

Classes

DashboardController

Klyroo.Dashboard · class

Central controller for an analytical dashboard: coordinates filters, views, staged resources (DashboardQueryStage.Essential, DashboardQueryStage.Background, DashboardQueryStage.Deferred) and refresh. It has no UI dependency. Dispose it with the page that owns it: that stops DashboardController.AutoRefresh and cancels the loads in progress.

Constructor Description
DashboardController(string key = "dashboard", TimeProvider? timeProvider = null) Creates a controller.
Field Type Description
const MaxAutoRefreshSeconds = 86400 int The largest DashboardController.AutoRefresh interval, one day in seconds.
Property Type Description
AutoRefresh (get, set) int Seconds between two automatic calls to DashboardController.RefreshAsync, or 0 (the default) for none. A positive value starts a timer and 0 or a negative value stops it. A tick waits for the refresh it started to finish, so refreshes started by the timer never overlap. The timer resumes on the synchronization context that set the value, if any, and stops when the controller is disposed. Setting it on a disposed controller does nothing. A refresh that throws does not stop the timer.
Controls IReadOnlyList<DashboardFilterControl> The filters, in the order they were added.
CurrentView (get, set) string? The key of the view being shown. Setting a key that is unknown or disabled is ignored. Setting a valid key marks the view as opened and raises Changed. The first enabled view added becomes current, and when the current view is disabled the next enabled one takes its place.
Filtered bool true when at least one filter differs from its default values.
Key string Identifier of the dashboard.
Refreshing bool true while any resource is loading or refreshing.
Resources IReadOnlyList<IDashboardSource> The registered resources, in the order they were registered.
State DashboardResourceState The combined state of the DashboardQueryStage.Essential resources, computed by DashboardController.CombineStates. Background and deferred resources are ignored.
UpdatedAt DateTimeOffset? The oldest IDashboardSource.UpdatedAt among the resources that have one, or null when none has loaded.
Views IReadOnlyList<DashboardViewMeta> The enabled views, in the order they were added. A new list is built on every call.
Method Returns Description
AddFilter(DashboardFilterControl filter) DashboardFilterControl Adds a filter and forwards its changes, including changes of DashboardFilterControl.Enabled and DashboardFilterControl.Items, to Changed.
AddView(string key, string label, string? badge = null, bool enabled = true) DashboardViewMeta Adds a view tab. The first enabled view added becomes the current one. Later changes of its Badge and Enabled raise Changed.
ApplyQuery(string? query, string? prefix = null) bool Sets the filters from a URL query string, the inverse of DashboardController.ToQuery. The query describes every filter that is not headless and enabled: one that is not in it returns to its default values, so applying the query of a URL always gives the state of that URL. A value that does not fit its filter (a number that is not a number, a date that is not yyyy-MM-dd, a DashboardFilterKind.Boolean that is not true or false, a DashboardFilterKind.Comparison that is not a DashboardComparisonMode name, a text longer than 512 characters, an option that is not among the loaded DashboardFilterControl.Items of an DashboardFilterKind.Options or DashboardFilterKind.Enum filter) is ignored, so a hand-edited URL cannot put an unexpected value in a filter. A disabled filter ignores changes, so the controller remembers what the query gave it and applies it when the filter is enabled, if no later ApplyQuery took it out of the URL in the meantime. A filter is only touched when its selection changes, so nothing is raised for a query that matches the current state, and applying the same query twice is the same as once. The method does not reload any resource: call DashboardController.RefreshAsync or DashboardController.LoadAsync afterwards, or let the subscribers of ChangedEvent do it. It uses no reflection.
static CombineStates(IEnumerable<DashboardResourceState> states) DashboardResourceState Combines several states into one. Disabled states are ignored. No state gives DashboardResourceState.Ready, only disabled states give DashboardResourceState.Disabled, then any error wins, then any loading, then all idle gives DashboardResourceState.Idle, otherwise DashboardResourceState.Ready.
Dispose() void Stops the DashboardController.AutoRefresh timer and disposes the registered resources that are disposable, which cancels their loads. Later calls to DashboardController.RefreshAsync do nothing.
FilterFingerprint() string A text that changes when a filter value changes: the keys and values of the filters. DashboardPersistence stores it with the handed-over data and refuses the data when the next render starts from other filter values.
LoadAsync() Task The first load of a page: like DashboardController.RefreshAsync, except that a resource whose data was handed over by an earlier render (IDashboardPersistentSource.Restored) keeps it instead of loading again. Call it once where the page loads its data, and DashboardController.RefreshAsync for every later reload. Without restored data, it is the same as DashboardController.RefreshAsync.
MergeQuery(string? existingQuery, string? prefix = null) string Replaces the filters of this controller in an existing query string with DashboardController.ToQuery and keeps every other pair as it was, so a page can write its filters into a URL that also carries a search term or a page number. Headless filters are not the controller's: a pair with the key of one is kept. A disabled filter keeps its pair too, so its value is still in the URL when the filter is enabled again.
QueryMatches(string? query, string? prefix = null) bool Tells whether the filters in a query string already say what DashboardController.ToQuery would write: the pairs with the keys of this controller are compared decoded, ignoring their order among the keys and how they are encoded, and the other pairs are ignored. A page uses it to leave a URL alone when only the spelling of the query differs from the one it would write.
RefreshAsync() Task Loads all DashboardQueryStage.Essential resources in parallel, waits for them, then loads the DashboardQueryStage.Background resources and the already active DashboardQueryStage.Deferred ones in parallel. A resource still loading from an earlier call is cancelled and loaded again. After DashboardController.Dispose it does nothing.
RegisterResource<TData>(DashboardResource<TData> resource) DashboardResource<TData> Registers a resource so that DashboardController.RefreshAsync loads it, its changes are forwarded to Changed and DashboardController.Dispose disposes it.
ResetFilters() void Restores the default values of every enabled filter that is not headless.
ToQuery(string? prefix = null) string Writes the filters that differ from their default values as a URL query string, without the leading ?: region=EMEA&region=APAC&period=2026-01-01&period=2026-01-31. Each value is its own key=value pair, in the order of the filters and of their values, and every key and value is percent-encoded, so the same filters always give the same text. Filters at their default values, disabled filters and DashboardFilterControl.Headless filters are left out; a filter whose selection was cleared is written as key=. The method changes nothing, uses no reflection and no clock.

DashboardFilterControl

Klyroo.Dashboard · class

Interactive filter control state managed by DashboardController.

Constructor Description
DashboardFilterControl(string key, string label, DashboardFilterKind kind = Options, IReadOnlyList<DashboardOption>? items = null, IReadOnlyList<string>? defaultValues = null, bool multiple = false, bool searchable = false, int? max = null, string placeholder = "All", bool headless = false, IReadOnlyList<DashboardFilterPreset>? presets = null) Creates a filter control.
Property Type Description
static BooleanOptions IReadOnlyList<DashboardOption> The options a DashboardFilterKind.Boolean filter gets when it is created without items: true (Yes) and false (No).
Changed bool true when the filter is enabled, not headless and its selection differs from the default values (same values in the same order).
static ComparisonOptions IReadOnlyList<DashboardOption> The options a DashboardFilterKind.Comparison filter gets when it is created without items: none, previous and year, the names of the DashboardComparisonMode members in lowercase.
Display string The text of the filter pill: the placeholder when nothing is selected, start – end for a DashboardFilterKind.DateRange (with … for an open bound), the labels joined by commas for one or two values, otherwise the first label followed by the number of others (for example EMEA +2).
Enabled (get, set) bool When false the filter is hidden, ignores changes and reports its default values. Changing it closes the option menu and raises ChangedEvent when the reported values change; the controller's Changed is raised either way, so the page renders again.
FilteredItems IReadOnlyList<DashboardOption> The options whose label contains DashboardFilterControl.Search, ignoring case; all options when the search is blank.
Headless bool Whether the filter is driven by code: hidden from the toolbar and ignored by DashboardFilterControl.Changed and by DashboardController.ResetFilters.
Items (get, set) IReadOnlyList<DashboardOption> The selectable options. Replace the list to update the options, for example after loading them; the controller's Changed is raised so the page renders again. null is stored as an empty list.
Key string Identifier of the filter.
Kind DashboardFilterKind What the control selects. The toolbar of KlyDashboardPage draws a text box for DashboardFilterKind.String, a number box for DashboardFilterKind.Number, a date picker for DashboardFilterKind.Date, two for DashboardFilterKind.DateRange, your CustomFilter template for DashboardFilterKind.Custom, and the option list for the other kinds.
Label string Text shown on the filter pill.
Max int? The maximum number of selected values in multiple mode, or null for no limit.
Multiple bool Whether several values can be selected.
Open (get, set) bool Whether the option menu is open in the toolbar.
Placeholder string Text shown when nothing is selected.
Presets IReadOnlyList<DashboardFilterPreset> Shortcuts that select a set of values in one click.
Search (get, set) string The text typed in the search box. Filters DashboardFilterControl.FilteredItems.
Searchable bool Whether the option list shows a search box.
Value (get, set) string? The first selected value. Setting it replaces the selection with that value; null or an empty string restores the default values. Ignored when DashboardFilterControl.Enabled is false.
Values IReadOnlyList<string> The selected values, or the default values when DashboardFilterControl.Enabled is false.
Method Returns Description
ApplyPreset(DashboardFilterPreset preset) void Replaces the selection with the values of a preset, normalized as by DashboardFilterControl.SetValues: one value in single mode, two for a DashboardFilterKind.DateRange, at most DashboardFilterControl.Max in multiple mode.
IsSelected(string value) bool Whether value is selected.
Reset() void Restores the default values.
SetValues(IEnumerable<string> values) void Replaces the selection and raises ChangedEvent. In single mode only the first value is kept, except for a DashboardFilterKind.DateRange, which keeps the first two (start and end). In multiple mode duplicates are dropped and at most DashboardFilterControl.Max values are kept. A list whose values are all empty clears the selection. Ignored when DashboardFilterControl.Enabled is false.
Toggle(string value) void Selects or deselects a value. In single mode the value replaces the selection and the menu closes; it cannot be deselected. In multiple mode the value is added unless DashboardFilterControl.Max is reached, or removed if already selected. ChangedEvent is raised even when nothing changed.

DashboardResource<TData>

Klyroo.Dashboard · class

A staged, optionally gated asynchronous data resource managed by a DashboardController.

Constructor Description
DashboardResource<TData>(string key, Func<CancellationToken, Task<TData>>? loader = null, DashboardQueryStage stage = Essential, TData defaultValue = null, Func<bool>? enabled = null, Func<bool>? requires = null, JsonTypeInfo<TData>? json = null) Creates a resource.
Property Type Description
Active bool true once the resource has been activated, loaded or fed with DashboardResource.SetData.
Data TData The current data. After a failed load it keeps the last successful value.
DefaultValue TData The data used before the first load, when disabled, and when the requires gate is closed.
Error string? The message of the last failure, or null.
Fetching bool true while the loader is running.
Key string Identifier of the resource.
Refreshing bool true while data that was already loaded is being reloaded.
Restored bool true while the data is the one IDashboardPersistentSource.RestoreJson took back: DashboardController.LoadAsync keeps it instead of loading again. Any load, SetData, SetError or closed gate clears it.
Stage DashboardQueryStage The stage in which the controller loads the resource.
State DashboardResourceState The lifecycle state of the resource.
UpdatedAt DateTimeOffset? When data was last set or loaded successfully (UTC).
Method Returns Description
ActivateAsync() Task Marks the resource active and loads it when its state is DashboardResourceState.Idle, or DashboardResourceState.Disabled with an enabled predicate that now returns true. A resource that is still disabled stays DashboardResourceState.Disabled with its default value, and Changed is only raised when it was not disabled before.
Dispose() void Cancels the load in progress and makes later calls to DashboardResource.RefreshAsync and DashboardResource.ActivateAsync do nothing. The state and the data are left as they are. DashboardController.Dispose disposes the resources registered with it.
ExportJson() string? The loaded data as JSON text, or null when there is nothing to hand over: no JsonTypeInfo, no successful load yet, or a load still running.
RefreshAsync() Task Runs the loader. A disabled resource goes to DashboardResourceState.Disabled. An unmet requires gate resets the data to the default value without calling the loader. Otherwise the state is DashboardResourceState.Loading on the first load, or stays DashboardResourceState.Ready with DashboardResource.Refreshing set on later ones. An exception from the loader is caught and stored in DashboardResource.Error.
RestoreJson(string json, DateTimeOffset? updatedAt) bool Takes data written by IDashboardPersistentSource.ExportJson as if it had been loaded at updatedAt, and sets IDashboardPersistentSource.Restored. Returns false and changes nothing when the source cannot take it: no JsonTypeInfo, a load already started, a disabled or disposed source, a closed requires gate, or text that does not read as the data type.
SetData(TData data) void Sets the resource data directly and transitions to DashboardResourceState.Ready. A load in progress is cancelled and its result ignored.
SetError(string message) void Transitions the resource to DashboardResourceState.Error. A load in progress is cancelled and its result ignored.

DashboardTableColumn<TRow>

Klyroo.Dashboard · class

A column of KlyDashboardTable<TRow>. Create one with `DashboardTableColumn.For``.

Property Type Description
Format DashboardFormatPreset The number format of DashboardTableColumnKind.Number and DashboardTableColumnKind.Bar cells.
InvertDelta bool Whether a negative DashboardTableColumnKind.Delta is shown as good news.
Key string The key of the column: the sort key, and the column of the table view and of the CSV export.
Kind DashboardTableColumnKind How the column shows and sorts its values.
Label string The column header.
Sortable bool Whether the header is a sort button.

DashboardViewMeta

Klyroo.Dashboard · class

Metadata for a named dashboard view tab.

Property Type Description
Badge (get, set) string? Small text shown next to the label, such as a count. Hidden when empty or 0. Setting it raises the controller's Changed, so the page renders again.
Enabled (get, set) bool Disabled views are left out of DashboardController.Views and cannot become current. Disabling the current view makes the next enabled view current (wrapping to the first), and enabling a view when none is current makes the first enabled view current. Setting it raises the controller's Changed.
Key (init) string Identifier of the view, the value of DashboardController.CurrentView when it is shown.
Label (init) string Text of the view tab.
Opened (get, set) bool true once the view has been current. Use it to render the content of a tab only after the first visit.

Records

DashboardAlertItem

Klyroo.Dashboard · record

One alert row in KlyDashboardAlerts.

Constructor Description
DashboardAlertItem(DashboardAlertSeverity Severity, string Label, string? Description = null, string? Value = null, string? ActionLabel = null, string? ActionHref = null) One alert row in KlyDashboardAlerts.
Property Type Description
ActionHref (init) string? The target of the action link.
ActionLabel (init) string? The text of the action on the right: a link when ActionHref is set, a button when KlyDashboardAlerts.OnAction has a handler, otherwise nothing is rendered.
Description (init) string? A line of text under the label.
Label (init) string The title of the alert.
Severity (init) DashboardAlertSeverity The severity, which sets the badge and the order.
Value (init) string? A short value on the right, such as a count.

DashboardBarItem

Klyroo.Dashboard · record

One horizontal bar entry in KlyDashboardBars.

Constructor Description
DashboardBarItem(string Label, double Value, string? Tag = null, string? Meta = null, bool Selected = false) One horizontal bar entry in KlyDashboardBars.
Property Type Description
Label (init) string The name of the bar.
Meta (init) string? A text shown instead of the formatted value.
Selected (init) bool Marks the row as selected (data-selected).
Tag (init) string? A small monospaced tag next to the label.
Value (init) double The value that sets the bar length.

DashboardChartSelection

Klyroo.Dashboard · record

The data point a user selected in a KlyDashboardChart, as OnSelect receives it.

Constructor Description
DashboardChartSelection(string Category, string Series, double Value) The data point a user selected in a KlyDashboardChart, as OnSelect receives it.
Property Type Description
Category (init) string The category (the label of the slice for a donut).
Series (init) string The DashboardChartSeries.Key of the series.
Value (init) double The value of the series in the category, as given to the chart.

DashboardChartSeries

Klyroo.Dashboard · record

One series definition for KlyDashboardChart.

Constructor Description
DashboardChartSeries(string Key, string Label, IReadOnlyList<double> Values, DashboardChartSeriesType Type = Bar, bool IsComparison = false) One series definition for KlyDashboardChart.
Property Type Description
IsComparison (init) bool Marks a comparison series: drawn in a muted color (dashed when it is a line), dashed in the legend, and left out of the totals and of a donut.
Key (init) string Identifier of the series, used as the column key in the table view and in the CSV export.
Label (init) string The name in the legend.
Type (init) DashboardChartSeriesType How the series is drawn. In a chart whose type is DashboardChartType.Bar, a DashboardChartSeriesType.Line series is drawn as a line over the bars. A DashboardChartType.Line chart draws every series as a line and a DashboardChartType.Donut chart draws the first series that is not a comparison, so this value only matters in bar charts.
Values (init) IReadOnlyList<double> One value per category.

DashboardDataColumn

Klyroo.Dashboard · record

Tabular view and CSV export representation of a dashboard block.

Constructor Description
DashboardDataColumn(string Key, string Label, bool Numeric = false) Tabular view and CSV export representation of a dashboard block.
Property Type Description
Key (init) string The key of the cell in each row.
Label (init) string The column header.
Numeric (init) bool Whether cells hold numbers: right-aligned in the table view, and written unquoted by the CSV export when they read as a number. The ready-made blocks write them with DashboardFormat.FormatInvariant.

DashboardDataTable

Klyroo.Dashboard · record

Tabular representation of a dashboard block used by "View as table" and "Download CSV".

Constructor Description
DashboardDataTable(IReadOnlyList<DashboardDataColumn> Columns, IReadOnlyList<IReadOnlyDictionary<string, string?>> Rows) Tabular representation of a dashboard block used by "View as table" and "Download CSV".
Property Type Description
Columns (init) IReadOnlyList<DashboardDataColumn> The columns, in display order.
Rows (init) IReadOnlyList<IReadOnlyDictionary<string, string?>> The rows: the text of each cell by column key, null for an empty cell. The ready-made blocks put raw invariant-culture numbers in numeric columns (12600, not 12.6K) and the rows they show, after their Limit.

DashboardDetailsItem

Klyroo.Dashboard · record

One definition row inside KlyDashboardDetails.

Constructor Description
DashboardDetailsItem(string Key, string Label, string? Value, string? Hint = null, bool Mono = false, bool Copy = false, string? Href = null, bool FullSpan = false, bool Hidden = false) One definition row inside KlyDashboardDetails.
Property Type Description
Copy (init) bool Whether a button after the value copies it to the clipboard. It needs an interactive render mode.
FullSpan (init) bool Whether the row spans both columns on wide screens.
Hidden (init) bool Whether the row is left out.
Hint (init) string? A line of help text under the value.
Href (init) string? When set, the value is a link.
Key (init) string Identifier of the row.
Label (init) string The term.
Mono (init) bool Whether the value uses a monospaced font.
Value (init) string? The text of the definition. An empty value is shown as the missing-value placeholder.

DashboardFeedItem

Klyroo.Dashboard · record

One timeline activity event in KlyDashboardFeed.

Constructor Description
DashboardFeedItem(string Label, DateTimeOffset Time, string? Description = null, string? AvatarText = null) One timeline activity event in KlyDashboardFeed.
Property Type Description
AvatarText (init) string? Short text in a circle, such as initials.
Description (init) string? A line of text under the label.
Label (init) string What happened.
Time (init) DateTimeOffset When it happened.

DashboardFilterPreset

Klyroo.Dashboard · record

A preset value in a DashboardFilterControl.

Constructor Description
DashboardFilterPreset(string Label, IReadOnlyList<string> Values, string? Icon = null) A preset value in a DashboardFilterControl.
Property Type Description
Icon (init) string? The name of a Klyroo.UI icon shown before the label of the preset button in the toolbar.
Label (init) string The text of the preset button.
Values (init) IReadOnlyList<string> The values selected when the preset is applied, normalized as by DashboardFilterControl.SetValues.

DashboardListItem

Klyroo.Dashboard · record

One ranked row in KlyDashboardList.

Constructor Description
DashboardListItem(string Label, string? Description = null, double? Value = null, double? Percent = null, double? Delta = null, string? LeadingText = null, string? Href = null, bool Selected = false) One ranked row in KlyDashboardList.
Property Type Description
Delta (init) double? A percent change, green when zero or positive and red when negative.
Description (init) string? A line of text under the label.
Href (init) string? When set, the label is a link.
Label (init) string The name of the row.
LeadingText (init) string? Short text in a circle before the label, such as initials or a rank.
Percent (init) double? A percentage shown before the value.
Selected (init) bool Marks the row as selected (data-selected).
Value (init) double? The value, formatted with the list Format.

DashboardOption

Klyroo.Dashboard · record

An option item in a DashboardFilterControl.

Constructor Description
DashboardOption(string Value, string Label, string? Description = null, string? Icon = null, bool Disabled = false) An option item in a DashboardFilterControl.
Property Type Description
Description (init) string? A secondary line under the label in the option menu of the toolbar.
Disabled (init) bool Whether the option cannot be selected.
Icon (init) string? The name of a Klyroo.UI icon (for example globe or i-lucide-globe) shown before the label in the option menu of the toolbar.
Label (init) string The text shown to the user.
Value (init) string The value stored in the selection.

DashboardRelativeTimeTexts

Klyroo.Dashboard · record

The words DashboardFormat.FormatRelativeTime uses. A new instance holds the English words.

Property Type Description
DaysAgo (init) Func<int, string> A moment less than a week ago, given the number of days.
static English DashboardRelativeTimeTexts The English words, the ones DashboardFormat.FormatRelativeTime uses.
HoursAgo (init) Func<int, string> A moment less than 22 hours ago, given the number of hours (at least 1).
JustNow (init) string A moment under 45 seconds ago.
MinutesAgo (init) Func<int, string> A moment less than 45 minutes ago, given the number of minutes (at least 1).
Yesterday (init) string A moment about a day ago.

DashboardStatsItem

Klyroo.Dashboard · record

One metric entry inside KlyDashboardStats.

Constructor Description
DashboardStatsItem(string Key, string Label, double? Value, DashboardFormatPreset Format = Number, double? Delta = null, bool InvertDelta = false, string? Caption = null, double? Progress = null, DashboardStatus? Status = null) One metric entry inside KlyDashboardStats.
Property Type Description
Caption (init) string? A line of text under the value.
Delta (init) double? The change in percent, shown next to the value.
Format (init) DashboardFormatPreset How the value is formatted.
InvertDelta (init) bool When set, a negative delta is shown as good news (for churn or cost).
Key (init) string Identifier of the metric.
Label (init) string The metric name.
Progress (init) double? A progress bar from 0 to 100.
Status (init) DashboardStatus? A status pill.
Value (init) double? The value, or null to show a dash.

DashboardStatus

Klyroo.Dashboard · record

Status pill shown on a KlyDashboardStat or DashboardStatsItem.

Constructor Description
DashboardStatus(string Label, string? Color = null) Status pill shown on a KlyDashboardStat or DashboardStatsItem.
Property Type Description
Color (init) string? A semantic color name such as success, warning, error, info or primary; neutral when null. It must not be empty.
Label (init) string The text of the pill.

DashboardTableSort

Klyroo.Dashboard · record

Active sort state of KlyDashboardTable<TRow>.

Constructor Description
DashboardTableSort(string Key, bool Descending) Active sort state of KlyDashboardTable<TRow>.
Property Type Description
Descending (init) bool Whether the order is descending.
Key (init) string The key of the sorted column.

Interfaces

IDashboardPersistentSource

Klyroo.Dashboard · interface

A source whose loaded data can be written as JSON text and read back, so that a render hands it to the next one instead of loading it again: the prerender of a Blazor page to its interactive render, for example. The text is written with a JsonTypeInfo the app gives, never by reflection, so it works with trimming and NativeAOT.

Property Type Description
Restored bool true while the data is the one IDashboardPersistentSource.RestoreJson took back: DashboardController.LoadAsync keeps it instead of loading again. Any load, SetData, SetError or closed gate clears it.
Method Returns Description
ExportJson() string? The loaded data as JSON text, or null when there is nothing to hand over: no JsonTypeInfo, no successful load yet, or a load still running.
RestoreJson(string json, DateTimeOffset? updatedAt) bool Takes data written by IDashboardPersistentSource.ExportJson as if it had been loaded at updatedAt, and sets IDashboardPersistentSource.Restored. Returns false and changes nothing when the source cannot take it: no JsonTypeInfo, a load already started, a disabled or disposed source, a closed requires gate, or text that does not read as the data type.

IDashboardSource

Klyroo.Dashboard · interface

Common interface implemented by dashboard queries and derived resources.

Property Type Description
Active bool true once the source has been activated or loaded. Deferred sources are refreshed by the controller only when active.
Error string? The message of the last failure, or null when the last load succeeded.
Fetching bool true while any load is running, first load or refresh.
Key string Identifier of the source, unique within a controller by convention.
Refreshing bool true while data that was already loaded is being reloaded. The old data stays visible.
Stage DashboardQueryStage The stage in which DashboardController.RefreshAsync loads the source.
State DashboardResourceState The lifecycle state of the source.
UpdatedAt DateTimeOffset? When data was last loaded successfully, or null if it never was.
Method Returns Description
ActivateAsync() Task Marks the source active and loads it if it has never loaded, or if it was disabled and is enabled again.
RefreshAsync() Task Reloads the source. A load still running from an earlier call is cancelled and its result ignored.

Enums

DashboardAlertOrder

Klyroo.Dashboard · enum

The order of the alerts of KlyDashboardAlerts.

Value Description
Severity Errors first and successes last.
AsGiven The order of the items.

DashboardAlertSeverity

Klyroo.Dashboard · enum

Alert severity level for KlyDashboardAlerts.

Value Description
Error A failure. Shown with the label Critical and sorted first.
Warning Something that needs attention. Shown with the label Warning.
Info Information. Shown with the label Info.
Success A resolved condition. Shown with the label Resolved and sorted last.

DashboardBarsEmphasis

Klyroo.Dashboard · enum

Which bars of KlyDashboardBars are colored.

Value Description
All Every bar is colored.
First The first bar is colored and the others are muted.

DashboardBarsVariant

Klyroo.Dashboard · enum

The layout of a KlyDashboardBars block.

Value Description
Bars One bar per item.
Funnel A funnel: every bar is scaled to the first one and shows its share of the previous step.

DashboardBlockPhase

Klyroo.Dashboard · enum

Block rendering phase determined by KlyDashboardCard.

Value Description
Idle The source has not loaded yet. The card shows a skeleton, or nothing when the source is disabled.
Loading The source is loading for the first time. The card shows a skeleton.
Error The source failed. The card shows the error message and a retry button.
Empty The source is ready, or there is no source, but the block has nothing to show.
Content The block content is rendered.

DashboardChartSeriesType

Klyroo.Dashboard · enum

How one DashboardChartSeries is drawn in a DashboardChartType.Bar chart.

Value Description
Bar Bars, side by side with the other bar series of each category.
Line A line. In a bar chart it is drawn over the bars.

DashboardChartTotals

Klyroo.Dashboard · enum

The totals row under a KlyDashboardChart.

Value Description
None No totals row.
Sum The sum of each series. Comparison series are left out.
Average The average of each series. Comparison series are left out.

DashboardChartType

Klyroo.Dashboard · enum

The drawing of a KlyDashboardChart.

Value Description
Bar One bar per series in each category, side by side.
Line Every series as a line.
Area Every series as a line with the area under it filled.
Donut The first series that is not a comparison as a ring of slices, one per category, with the total in the middle.

DashboardCompareMode

Klyroo.Dashboard · enum

How KlyDashboardStat computes the delta from its previous value.

Value Description
Change The percent change from the previous value. Nothing is shown when the previous value is zero.
Difference The raw difference, multiplied by 100 for the DashboardFormatPreset.Ratio format.

DashboardComparisonMode

Klyroo.Dashboard · enum

Comparison period mode for date ranges and KPI comparisons.

Value Description
None No comparison.
Previous The period of the same length that ends the day before the range starts.
Year The same dates one year earlier. February 29 becomes February 28 when the previous year is not a leap year.

DashboardFilterKind

Klyroo.Dashboard · enum

Filter control kind in a DashboardController. It picks the control drawn by the toolbar of KlyDashboardPage; the selection is always stored as strings, see DashboardFilterControl.

Value Description
String Free text, drawn as a text box. The text is applied when the box loses focus or the user presses Enter.
Number A number, drawn as a number box and stored in the invariant culture (1234.5).
Boolean A yes or no choice, drawn as an option list. Without items it offers DashboardFilterControl.BooleanOptions (true, false).
Date A single date, drawn as a date picker and stored as yyyy-MM-dd.
DateRange A start and an end date, drawn as two date pickers and stored as two yyyy-MM-dd values, start then end. An open bound is an empty string.
Enum One value out of a fixed set, drawn as an option list.
Options A choice among DashboardFilterControl.Items, drawn as an option list. This is the default.
Remote Options loaded from a remote source, drawn as an option list. Your code loads them and assigns DashboardFilterControl.Items, which renders the toolbar again.
Comparison A DashboardComparisonMode choice, drawn as an option list. Without items it offers DashboardFilterControl.ComparisonOptions (none, previous, year).
Custom A control drawn by the host application through the CustomFilter template of KlyDashboardPage. Without the template the toolbar leaves the filter out.

DashboardFormatPreset

Klyroo.Dashboard · enum

Preset number formats supported by DashboardFormat.

Value Description
Number Grouped number with at most one decimal, switching to compact notation from 10,000 (1,234.5, 12.6K).
Integer Rounded to the nearest integer, midpoints to even, with group separators (1,235).
Decimal Grouped number with at most one decimal and no compact notation (1,234.5).
Compact Thousands, millions and billions with at most one decimal (12.6K, 2.4M, 1.1B).
Percent A value already expressed in percent, with a percent sign (14.2 gives 14.2%).
Ratio A fraction multiplied by 100, with a percent sign (0.57 gives 57%).
Delta A signed percent change, with a plus sign when positive (+14.2%, -4.5%).
Points A signed difference in percentage points (+2.1 pts, +1 pt).
Signed A grouped number with a plus sign when positive (+1,200).

DashboardGaugeVariant

Klyroo.Dashboard · enum

The drawing of a KlyDashboardGauge.

Value Description
Ring A circular gauge with the value in the middle.
Bar A horizontal meter with the value above it, the minimum and maximum under it and a marker at the target.

DashboardGridVariant

Klyroo.Dashboard · enum

The layout of a KlyDashboardGrid.

Value Description
Cards Separate cards with a gap.
Panels The cards joined into one bordered panel with thin dividers.

DashboardQueryStage

Klyroo.Dashboard · enum

Execution stage of a dashboard query.

Value Description
Essential Loaded first, all resources of this stage in parallel. DashboardController.State only looks at these resources.
Background Loaded once every DashboardQueryStage.Essential resource has settled, in parallel with the active deferred resources.
Deferred Not loaded by DashboardController.RefreshAsync until the resource is activated, by IDashboardSource.ActivateAsync or by the first render of a card bound to it. After that it is refreshed with the background stage.

DashboardResourceState

Klyroo.Dashboard · enum

Lifecycle state of a dashboard query or derived resource.

Value Description
Idle The resource has not loaded yet, or a requires gate kept it from loading and no default value was supplied.
Loading The first load is running and no data is available yet.
Ready Data is available. A refresh can still be running; check IDashboardSource.Refreshing.
Error The last load threw. IDashboardSource.Error holds the message and the previous data, if any, is kept.
Disabled The enabled predicate returned false. The data is the default value and a card bound to the resource is not rendered.

DashboardSkeletonKind

Klyroo.Dashboard · enum

Skeleton geometry kind rendered while a KlyDashboardCard is loading.

Value Description
Rows Generic list rows. Rendered as three lines.
Stat A large value and a caption, used by KlyDashboardStat.
Stats A grid of metrics, used by KlyDashboardStats. Rendered as three lines.
Gauge A gauge, used by KlyDashboardGauge. Rendered as three lines.
Details A definition list, used by KlyDashboardDetails. Rendered as three lines.
Bars Four vertical bars of different heights.
Paired Paired bars: three groups of two vertical bars.
Funnel A funnel, used by KlyDashboardBars with the funnel variant. Rendered as three lines.
Stack Stacked bars: three horizontal bars split into segments.
Table A table, used by KlyDashboardTable. Rendered as three lines.
Feed A timeline, used by KlyDashboardFeed. Rendered as three lines.
Lines Same shape as DashboardSkeletonKind.Bars, used by KlyDashboardChart when Type is line.
Donut A donut chart, used by KlyDashboardChart when Type is donut. Rendered as three lines.

DashboardStatsVariant

Klyroo.Dashboard · enum

The layout of a KlyDashboardStats block.

Value Description
Plain The metrics side by side with no frame.
Tiles Each metric in a bordered tile.

DashboardTableColumnKind

Klyroo.Dashboard · enum

How a DashboardTableColumn shows and sorts its values.

Value Description
Text The value as text. A string is shown as it is; a date or a number is formatted with the culture of the page on screen, and written invariantly (ISO 8601 dates, . as the decimal mark) in the table view and the CSV export. Strings sort ignoring case, other comparable values (a date) by value, and values of different types (a column of Object) by their text.
Number A number formatted with the DashboardTableColumn.Format of the column, right-aligned, sorted by value.
Delta A percent change: +12.5%, green when positive and red when negative (reversed by DashboardTableColumn.InvertDelta).
Percent A percentage.
Bar A number with a bar scaled to the largest value of the column.

Klyroo.Dashboard

Components (13) · Static classes and extensions (2) · Classes (2) · Records (1)

Components

KlyDashboardAlerts

Klyroo.Dashboard · component · inherits KlyComponentBase

A list of alerts ordered by severity, each with an optional value and an action link or button.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Items IReadOnlyList<DashboardAlertItem>? The alerts to display.
Limit int? The maximum number of alerts shown, applied after ordering. The table view and the CSV export hold the same alerts.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
OnAction EventCallback<DashboardAlertItem> Called with the alert when the user clicks its action. An alert with an ActionLabel and no ActionHref renders its action as a button only when this has a handler; without one the action is left out. An alert with an ActionHref always renders a link.
Order DashboardAlertOrder DashboardAlertOrder.Severity (the default) puts errors first and successes last. DashboardAlertOrder.AsGiven keeps the order of KlyDashboardAlerts.Items.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 6.
Subtitle string? A secondary line under the title.
Title string? The heading of the block.

Also accepts the parameters of KlyComponentBase.

KlyDashboardBars

Klyroo.Dashboard · component · inherits KlyComponentBase

Horizontal bars for a ranking, or a funnel with the conversion rate between steps.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Emphasis DashboardBarsEmphasis DashboardBarsEmphasis.All (the default) colors every bar. DashboardBarsEmphasis.First colors the first bar and mutes the others.
Format DashboardFormatPreset How the values are formatted, unless an item supplies its own Meta text.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Items IReadOnlyList<DashboardBarItem>? The bars, in display order.
Limit int? The maximum number of bars shown. The table view and the CSV export hold the same bars.
Max double? The value that fills a whole bar. Defaults to the largest item. Ignored by the funnel variant. The scale always includes zero: a zero value has no bar and a negative value extends to the left of a zero line.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
OnSelect EventCallback<DashboardBarItem> Called with the bar when the user picks it. Each bar is then a button, so the choice works with the keyboard and with a screen reader, and aria-pressed follows Selected. Use it to drill down, for example by setting a filter of the DashboardController.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 6.
Subtitle string? A secondary line under the title.
Title string? The heading of the block.
Variant DashboardBarsVariant DashboardBarsVariant.Bars (the default), or DashboardBarsVariant.Funnel: every bar is scaled to the first one and shows its share of the previous step.

Also accepts the parameters of KlyComponentBase.

KlyDashboardCard

Klyroo.Dashboard · component · inherits KlyComponentBase

The frame shared by every block: header with title and menu, loading skeleton, error with a retry button, empty state, content, chips for active filters and a footer. Use it directly to build a custom block.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
ChildContent RenderFragment? The content of the block, rendered once the source is ready and not empty.
EmptyDescription string? A line of text under the title of the empty state.
EmptyTitle string? The title of the empty state. Defaults to the NoData text of the locale (No data for this period in English).
Expandable bool Shows the Expand button in the menu, which opens the content of the card in a modal dialog (KlyModal of Klyroo.UI: the page behind is inert, the focus stays in the dialog, Escape, the close button and a click on the backdrop close it, and the focus returns to the Expand button). Defaults to true.
Filters IReadOnlyList<DashboardFilterControl>? Filters whose non-default selection is shown as removable chips under the header.
Footer RenderFragment? Content placed in the footer, before the freshness text.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
HeaderRight RenderFragment? Content placed in the header, before the menu buttons.
IsEmpty bool Shows the empty state instead of the content once the source is ready.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
OnCsvExported EventCallback<string> Receives the CSV text when the user clicks Download CSV, instead of the browser download the card starts by default. Use it to save the file yourself, for example in a .NET MAUI app where the web view cannot download. Name the file with DashboardFormat.ResolveFileName.
Skeleton DashboardSkeletonKind The shape of the loading skeleton. Stat, Bars, Lines, Paired and Stack have their own shape, the other kinds render three lines.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately. The card activates a Deferred source on its first render, and on every render calls IDashboardSource.ActivateAsync on a disabled source, which loads it once its enabled predicate returns true.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 12.
Subtitle string? A secondary line under the title.
Tabulate Func<DashboardDataTable>? Returns the content of the block as a table. It enables the View as table and Download CSV buttons.
Title string? The heading of the block.
ViewAsTable bool Shows the View as table button in the menu. It needs KlyDashboardCard.Tabulate. Defaults to true.

Also accepts the parameters of KlyComponentBase.

Property Type Description
Phase DashboardBlockPhase The phase the card is in, derived from the state of KlyDashboardCard.Source: Idle and Loading show the skeleton, Error the message, otherwise Empty or Content. Without a source it is Content, or Empty when KlyDashboardCard.IsEmpty is set.

KlyDashboardChart

Klyroo.Dashboard · component · inherits KlyComponentBase

A chart over categories without a charting dependency: grouped bars, lines, bars with line series over them, or a donut of the first series, with a legend and optional totals.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Categories IReadOnlyList<string>? The labels of the horizontal axis, one per category, or the slices of a donut.
Format DashboardFormatPreset How the values of labels, tooltips, totals and the table view are formatted.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Height int The height of the drawing in pixels at its natural width of 640. The drawing keeps its proportions and shrinks with the card, so it is shorter in a narrow one. Defaults to 220.
Horizontal bool Draws the bars of a bar chart along the horizontal axis, with the categories on the vertical one.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
OnSelect EventCallback<DashboardChartSelection> Called with the category, the series key and the value when the user picks a data point. In the drawing of KlyChart (every chart except the compact one described at KlyDashboardChart.Type) the bars, points and slices themselves are the choice: a click on one, or Enter or Space on the one the arrow keys are on, with a pointer cursor and the same keyboard hint as KlyChart.OnSelect. A pick is reported for the series it landed on, a comparison series included (its own key and value); from the keyboard, or for a series with no value in that category, it is the first series that is not a comparison and has a value, and a category with nothing to pick is ignored. The compact drawing, which KlyChart cannot draw (a bar chart with a line series, or with KlyDashboardChart.ShowLabels), has no selectable marks, so it shows a group of buttons under the drawing instead, one per category and series (one per slice for a donut, comparison series left out), which works with the keyboard and with a screen reader too. Use it to drill down, for example by setting a filter of the DashboardController.
Series IReadOnlyList<DashboardChartSeries>? The data series, all drawn (a donut draws the first one that is not a comparison) and all in the table view. Each series takes the next chart color of Klyroo.UI (--klyroo-chart-1 to --klyroo-chart-6, then neutral); comparison series are muted.
ShowLabels bool Shows the formatted value above each bar (below a negative one). Lines, areas and donuts show their values in tooltips. It switches the chart to the compact drawing described at KlyDashboardChart.Type.
ShowLegend bool Shows the legend: the series, or the slices with their value for a donut. Defaults to true.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 8.
Stacked bool Stacks the series of a bar or area chart instead of drawing them side by side or over one another. Comparison series are stacked too, so leave them out of a stacked chart.
Subtitle string? A secondary line under the title.
Title string? The heading of the block.
Totals DashboardChartTotals The totals row: DashboardChartTotals.Average shows the average of each series, DashboardChartTotals.Sum the sum. Comparison series are left out. DashboardChartTotals.None, the default, shows nothing.
Type DashboardChartType The chart type: DashboardChartType.Bar (the default) draws one bar per series in each category, side by side; DashboardChartType.Line draws every series as a line; DashboardChartType.Area draws every series as a line with the area under it filled; DashboardChartType.Donut draws the first series that is not a comparison as a ring of slices, one per category, with the total in the middle. The drawing is KlyChart of Klyroo.UI: value and category axes, gridlines, a tooltip that follows the pointer and the arrow keys, a bar or a line that starts at zero (a zero value has no bar, a negative value goes below the axis), and a data table for screen readers. In a bar chart, a series whose Type is DashboardChartSeriesType.Line is drawn as a line over the bars, but KlyChart cannot mix the two, so such a chart (and a chart with KlyDashboardChart.ShowLabels) uses a compact drawing of its own: bars and lines from a zero baseline, without axes or gridlines, and KlyDashboardChart.Stacked and KlyDashboardChart.Horizontal do not apply. The type also picks the loading skeleton.

Also accepts the parameters of KlyComponentBase.

KlyDashboardDetails

Klyroo.Dashboard · component · inherits KlyComponentBase

A definition list of labelled values, with optional hints, links and copy buttons.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Items IReadOnlyList<DashboardDetailsItem>? The definition rows. Rows marked Hidden are skipped, and rows marked Copy get a button that copies the value with navigator.clipboard.writeText, which needs an interactive render mode and a secure context.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 6.
Subtitle string? A secondary line under the title.
Title string? The heading of the block.

Also accepts the parameters of KlyComponentBase.

KlyDashboardFeed

Klyroo.Dashboard · component · inherits KlyComponentBase

A timeline of events with relative times, grouped by day.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
GroupByDay bool Inserts a heading (Today, Yesterday or an ISO date) when the day changes. Defaults to true.
Items IReadOnlyList<DashboardFeedItem>? The events, in display order. They are not sorted.
Limit int? The maximum number of events shown. The table view and the CSV export hold the same events.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
Now DateTimeOffset? The reference moment for the day headings and the relative times. The current UTC time when null; set it to get deterministic output in tests.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 6.
Subtitle string? A secondary line under the title.
Title string? The heading of the block.

Also accepts the parameters of KlyComponentBase.

KlyDashboardGauge

Klyroo.Dashboard · component · inherits KlyComponentBase

A gauge that shows a value between a minimum and a maximum, as a ring or a horizontal bar.

Parameter Type Description
Caption string? A line of text under the value inside the ring, or next to the value in the bar variant.
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Format DashboardFormatPreset How the value and the target are formatted.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Max double The value at which the gauge is full. Defaults to 100.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
Min double The value at which the gauge is empty. Defaults to 0.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 4.
Subtitle string? A secondary line under the title.
Target double? A target shown as text under the gauge, and as a marker on the bar of the bar variant.
Title string? The heading of the block.
Value double? The current value.
Variant DashboardGaugeVariant DashboardGaugeVariant.Ring (the default) draws a circular gauge with the value in the middle. DashboardGaugeVariant.Bar draws a horizontal meter with the value above it, the minimum and maximum under it and a marker at KlyDashboardGauge.Target. The variant drawn is exposed as data-variant.

Also accepts the parameters of KlyComponentBase.

Property Type Description
Share double The filled fraction of the ring, from 0 to 1: (Value - Min) / (Max - Min), clamped. 0 when KlyDashboardGauge.Value is null, NaN or infinite, or KlyDashboardGauge.Max is not above KlyDashboardGauge.Min.

KlyDashboardGrid

Klyroo.Dashboard · component · inherits KlyComponentBase

A grid of equal columns (12 by default, see Columns) that places blocks by their Span, and gives them its Menu and Freshness defaults.

Parameter Type Description
ChildContent RenderFragment? The blocks of the grid. Each one sets its width with Span.
Columns int The number of equal columns of the grid, at least 1. Defaults to 12. A block's Span is clamped to it, so with Columns="3" a block of the default span 12 fills one row and Span="1" takes a third.
Freshness bool The default of Freshness for the blocks inside the grid. Defaults to false.
Menu bool The default of Menu for the blocks inside the grid. Defaults to false.
Variant DashboardGridVariant DashboardGridVariant.Cards (the default) draws separate cards with a gap. DashboardGridVariant.Panels joins the cards into one bordered panel with thin dividers.

Also accepts the parameters of KlyComponentBase.

KlyDashboardList

Klyroo.Dashboard · component · inherits KlyComponentBase

A ranked list of rows with an optional value, percentage and delta.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Format DashboardFormatPreset How the row values are formatted.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Items IReadOnlyList<DashboardListItem>? The rows, in display order.
Limit int? The maximum number of rows shown. The table view and the CSV export hold the same rows.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
OnRowClick EventCallback<DashboardListItem> Called with the row when the user picks it. The label of each row without an Href is then a button, so the choice works with the keyboard and with a screen reader, aria-pressed follows Selected, and a click anywhere on the row does the same for the pointer. A row with an Href keeps its link and does not raise this event. Use it to drill down, for example by setting a filter of the DashboardController.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 6.
Subtitle string? A secondary line under the title.
Title string? The heading of the block.

Also accepts the parameters of KlyComponentBase.

KlyDashboardPage

Klyroo.Dashboard · component · inherits KlyComponentBase

Page shell of a dashboard: a header with the title and a refresh button, a sticky toolbar with the view tabs and the filter controls of a DashboardController (option lists, text, number and date inputs, or your own template, depending on the filter kind), and a body for the blocks. It re-renders when the controller changes. Buttons and inputs need an interactive render mode.

Parameter Type Description
Actions RenderFragment? Content placed before the refresh button, for example your own buttons.
ChildContent RenderFragment? The body of the page, usually a KlyDashboardGrid. The page only draws the tabs: render the content of the current view yourself from DashboardController.CurrentView.
CustomFilter RenderFragment<DashboardFilterControl>? Draws each enabled filter whose Kind is Custom in the toolbar. It receives the filter: show its selection from Values and change it with Value, SetValues or Reset. Without it the toolbar leaves those filters out.
Dashboard DashboardController? The controller shown by the page: it supplies the refresh button, the view tabs and the filter pills, and the page re-renders when the controller changes. Without it only the title and the body are rendered.
Description string? Text under the heading. When empty, the page shows an Updated line from Dashboard.UpdatedAt once data has loaded.
ShowFilters bool Shows a control for each enabled filter that is not headless, chosen by its Kind: a text, number or date box, two date boxes for a range, your KlyDashboardPage.CustomFilter template, or a pill with an option list. Defaults to true.
ShowRefresh bool Shows the refresh button, which calls DashboardController.RefreshAsync. Defaults to true.
ShowTabs bool Shows the view tabs when the controller has at least two enabled views. Defaults to true.
Sticky bool Keeps the toolbar of tabs and filters at the top of the page while the body scrolls. Defaults to true.
SyncUrl bool Keeps the filters in the URL: the page applies the query string of the current URL to the filters of KlyDashboardPage.Dashboard once (DashboardController.ApplyQuery, also in static SSR and in a prerender, from NavigationManager.Uri), writes every later change back with DashboardController.MergeQuery and a replacing navigation (no history entry per change, other query parameters kept), and applies the query again when a navigation to the same page changes it. Nothing is written in a static render, which cannot navigate. A parent initializes before this child, so a page that loads its data in OnInitializedAsync should also call Dashboard.ApplyQuery there, before DashboardPersistence.Attach and LoadAsync: the first load then uses the filters of the URL, and the fingerprint of the persisted data matches between the prerender and the interactive render. The application is idempotent, so doing it in both places is harmless. Defaults to false.
Title string? The page heading.
UrlPrefix string? Put before the key of every filter in the URL (sales.), so that two dashboards on one page can share a query string. Only used with KlyDashboardPage.SyncUrl.

Also accepts the parameters of KlyComponentBase.

KlyDashboardStat

Klyroo.Dashboard · component · inherits KlyComponentBase

A single metric with an optional delta, sparkline, goal bar and status pill.

Parameter Type Description
Caption string? A line of text under the value. Replaces the default vs ... previous period caption.
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Compare double? The previous value. When KlyDashboardStat.Delta is not set, the delta is computed from it, and the default caption names it.
CompareMode DashboardCompareMode DashboardCompareMode.Change (the default) computes the percent change from KlyDashboardStat.Compare and shows nothing when KlyDashboardStat.Compare is zero. DashboardCompareMode.Difference uses the raw difference, multiplied by 100 for the Ratio format.
Delta double? The change to display, in percent. It takes precedence over KlyDashboardStat.Compare.
DeltaFormat DashboardFormatPreset? How the delta is formatted. Defaults to Delta, or to Points or Signed when KlyDashboardStat.CompareMode is DashboardCompareMode.Difference.
Format DashboardFormatPreset How KlyDashboardStat.Value, KlyDashboardStat.Compare and KlyDashboardStat.Goal are formatted.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Goal double? A target that adds a progress bar and a percentage. It must be greater than 0.
InvertDelta bool When set, a negative delta is shown as good news (for churn, cost or latency).
Label string The name of the metric, shown as the card title. Required.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 4.
Status DashboardStatus? A status pill in the header.
TextValue string? Text shown instead of the formatted KlyDashboardStat.Value, for values that are not numbers.
Trend IReadOnlyList<double>? Points of a sparkline. It needs at least two values.
Value double? The value, formatted with KlyDashboardStat.Format.

Also accepts the parameters of KlyComponentBase.

KlyDashboardStats

Klyroo.Dashboard · component · inherits KlyComponentBase

Several metrics side by side, each with an optional delta, progress bar and status pill.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Items IReadOnlyList<DashboardStatsItem>? The metrics, laid out in a grid of up to four columns.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 12.
Subtitle string? A secondary line under the title.
Title string? The heading of the block.
Variant DashboardStatsVariant DashboardStatsVariant.Plain (the default) or DashboardStatsVariant.Tiles, which puts each metric in a bordered tile.

Also accepts the parameters of KlyComponentBase.

KlyDashboardTable<TRow>

Klyroo.Dashboard · component · inherits KlyComponentBase

A table over rows of your own type, with typed columns (text, number, delta, percent, bar) and click-to-sort headers.

Parameter Type Description
Card bool Whether the block draws its own surface (border, background and shadow; only the background in a panels grid). Defaults to true.
Columns IReadOnlyList<DashboardTableColumn<TRow>>? The column definitions, in display order.
Freshness bool? Shows an Updated footer built from Source.UpdatedAt. When null, the value of the enclosing KlyDashboardGrid.Freshness applies, or false outside a grid.
Limit int? The maximum number of rows shown, applied after sorting. The CSV export holds the same rows.
Menu bool? Shows the View as table, Download CSV and Expand buttons in the header once the content is displayed. Download CSV saves the block's table as a CSV file named after the title. When null, the value of the enclosing KlyDashboardGrid.Menu applies, or false outside a grid.
OnRowClick EventCallback<TRow> Called with the row (the item of KlyDashboardTable.Rows) when the user picks it. The first cell of each row is then a button, so the choice works with the keyboard and with a screen reader, and a click anywhere on the row does the same for the pointer. Use it to drill down, for example by setting a filter of the DashboardController.
Rows IReadOnlyList<TRow>? The rows. Each column reads its value from the row with its own delegate (DashboardTableColumn.For``), and a nullvalue shows the missing-value placeholder. Blazor infersTRowfrom this list or fromKlyDashboardTable.Columns`.
Sort DashboardTableSort? The active sort. The table updates it itself when a header is clicked, and KlyDashboardTable.SortChanged reports the change. Numeric columns sort descending first, then ascending, then unsorted. Empty cells always come last.
SortChanged EventCallback<DashboardTableSort?> Raised when the sort changes, with null when the sort is cleared.
Source IDashboardSource? The resource whose state drives the block: a skeleton while it loads, an error message with a retry button, then the content. The block does not read Data from it, so pass the data through the other parameters. Without a source the content renders immediately.
Span int Width of the block in columns of the grid, clamped between 1 and the Columns of the enclosing KlyDashboardGrid (12 outside a grid). Defaults to 12.
Subtitle string? A secondary line under the title.
Title string? The heading of the block.

Also accepts the parameters of KlyComponentBase.

Static classes and extensions

DashboardLocales

Klyroo.Dashboard · service

The built-in texts of Klyroo.Dashboard, one set per locale of KlyLocales.All and keyed by the same codes. A component picks the set of its current KlyLocale.Code with KlyLocales.ResolveCode, so "pt-PT" gets "pt" and an unknown language gets English. Change a set with KlyrooDashboardOptions.Texts.

Property Type Description
static Ar DashboardTexts العربية (ar). Needs review.
static De DashboardTexts Deutsch (de). Needs review.
static En DashboardTexts English.
static Es DashboardTexts Español (es). Needs review.
static Fr DashboardTexts Français (fr). Reviewed.
static It DashboardTexts Italiano (it). Needs review.
static Ja DashboardTexts 日本語 (ja). Needs review.
static Nl DashboardTexts Nederlands (nl). Needs review.
static Pt DashboardTexts Português (pt). Needs review.
static PtBr DashboardTexts Português do Brasil (pt-BR). Needs review.
static ReviewedCodes IReadOnlyList<string> The codes whose texts were reviewed by a native speaker. The other sets are drafts waiting for review.
static Ru DashboardTexts Русский (ru). Needs review.
static Tables IReadOnlyDictionary<string, DashboardTexts> Every set by locale code: the codes of KlyLocales.All.
static ZhCn DashboardTexts 简体中文 (zh-Hans). Needs review.

KlyrooDashboardServiceCollectionExtensions

Klyroo.Dashboard · service

Registration of the Klyroo.Dashboard services.

Method Returns Description
static AddKlyrooDashboard(IServiceCollection services, Action<KlyrooDashboardOptions>? configure = null) IServiceCollection Registers the services the dashboard components need: DashboardPersistence (scoped), the KlyrooDashboardOptions, and Klyroo.UI through AddKlyrooUi(), so a second call to AddKlyrooUi() is not needed.

Classes

DashboardPersistence

Klyroo.Dashboard · class

Hands the data the prerender of a page loaded to its interactive render, so the resources do not load twice. In OnInitializedAsync, register the resources, set the filters, call DashboardPersistence.Attach, then load with DashboardController.LoadAsync: in the prerender the ready resources are written into the persistent component state of the page, and in the interactive render they take that data back, which DashboardController.LoadAsync keeps instead of loading again. Only resources created with a json type info take part (see IDashboardPersistentSource).

Constructor Description
DashboardPersistence(IServiceProvider services) Creates the service. Use the instance AddKlyrooDashboard registers rather than creating one.
Method Returns Description
Attach(DashboardController dashboard, IComponentRenderMode? renderMode) IDisposable Restores the resources of dashboard that the previous render handed over, and hands them over at the end of this render. Call it after registering the resources and setting the filters: a resource registered later is handed over but never restored, and data written under other filter values is refused.

KlyrooDashboardOptions

Klyroo.Dashboard · class

Options of Klyroo.Dashboard, set with services.AddKlyrooDashboard(options => ...): the hand-over of prerendered data and the built-in texts of each locale. It is an extension of KlyrooOptions (`KlyrooOptions.Extension``), so configure it in code shared by the server and the WebAssembly client.

Property Type Description
PersistMaxAge (get, set) TimeSpan The oldest handed-over data DashboardPersistence restores (5 minutes by default), measured from when it was loaded. A prerender hands its data over within seconds, but .NET can also persist the state of an Interactive Server circuit when it pauses and give it back when the circuit resumes, possibly much later: older data is dropped and the resource loads again.
PersistMaxBytes (get, set) int The largest data, in bytes as sent, that one resource hands from the prerender to the interactive render through DashboardPersistence (8 KB by default). The size counts the escaping and the two base64 encodings Blazor adds, so the JSON of the data itself is about a third of it. A resource over it is not handed over: the interactive render loads it again once. All the resources, and the other Klyroo libraries of the page (Klyroo.Table lists), also share KlyrooOptions.PersistedStateMaxBytes (28 KB as sent by default): the message that starts an Interactive Server circuit carries all of it, and SignalR refuses it past 32 KB.
Method Returns Description
Texts(string localeCode, Func<DashboardTexts, DashboardTexts> change) KlyrooDashboardOptions Changes the texts of a locale, like KlyLocales.Extend does for Klyroo.UI: change receives the set the locale resolves to and returns the one to use, usually t => t with { ... }. localeCode is a code of KlyLocales.All ("fr"), or the code of a locale you added ("en-AU", "tlh"): a locale without a set of its own starts from the set KlyLocales.ResolveCode picks for it, then its changes apply. The texts become read-only the first time a component resolves one.

Records

DashboardTexts

Klyroo.Dashboard · record

The built-in texts of the dashboard components: toolbar and card buttons, accessible names, empty and error states, column headers of the table view and the CSV export, and relative times. There is one set per locale of Klyroo.UI (DashboardLocales), and a component shows the set of its current locale, the one its Messages come from. Change a set with KlyrooDashboardOptions.Texts in AddKlyrooDashboard(o => ...).

Constructor Description
DashboardTexts() Creates the texts with their English defaults.
Property Type Description
ClearFilter (init) Func<string, string> The accessible name of the button that clears a filter, given its label ("Clear Region").
Collapse (init) string The button that closes the enlarged block ("Collapse").
ColumnAlert (init) string The alert column of Alerts ("Alert").
ColumnCategory (init) string The first column of a chart table ("Category").
ColumnChange (init) string The change column of a Stat whose change is neither a percent nor points ("Change").
ColumnChangePercent (init) string The percent change column ("Change (%)").
ColumnChangePoints (init) string The change column of a Stat compared in points ("Change (pts)").
ColumnDescription (init) string The description column of List, Feed and Alerts ("Description").
ColumnEvent (init) string The event column of a Feed ("Event").
ColumnGoal (init) string The goal column of a Stat ("Goal").
ColumnLabel (init) string The name column of the table view of Bars, List, Stat, Stats and Gauge ("Label").
ColumnMaximum (init) string The maximum column of a Gauge ("Maximum").
ColumnMinimum (init) string The minimum column of a Gauge ("Minimum").
ColumnPercent (init) string The percent column of a List ("Percent (%)").
ColumnPrevious (init) string The previous value column of a Stat ("Previous").
ColumnSeverity (init) string The severity column of Alerts ("Severity").
ColumnTarget (init) string The target column of a Gauge ("Target").
ColumnTime (init) string The time column of a Feed ("Time").
ColumnValue (init) string The value column ("Value").
Copy (init) string The tooltip of the copy button of a Details row ("Copy").
CopyValue (init) Func<string, string> The accessible name of the copy button of a Details row, given the row label ("Copy Order id").
DownloadCsv (init) string The button that saves the block as a CSV file ("Download CSV").
ErrorMessage (init) string The text of the failed-load message when the resource gives no message of its own.
ErrorTitle (init) string The title of the message shown when a resource failed to load ("This data could not be loaded").
Expand (init) string The button that enlarges the block in a dialog ("Expand").
FilterFrom (init) Func<string, string> The accessible name of the start box of a date range filter, given its label ("Period from").
Filters (init) string The accessible name of the filter toolbar ("Filters").
FilterTo (init) Func<string, string> The accessible name of the end box of a date range filter, given its label ("Period to").
FunnelBase (init) string The note of the first step of a funnel ("base 100%").
FunnelStep (init) Func<int, string> The note of a later step of a funnel, given its share of the previous step in percent ("60% of the previous step").
Gauge (init) string The accessible name of a Gauge without a title, and its label in the table view ("Gauge").
Goal (init) Func<string, string> The goal line of a Stat, given the formatted goal ("Goal 1,000").
HideTable (init) string The button that returns from the table view to the block ("Hide table").
NoData (init) string The title of an empty block ("No data for this period").
NothingNeedsAttention (init) string The title of an empty Alerts block ("Nothing needs attention").
Refresh (init) string The refresh button of the page ("Refresh"), also its accessible name.
Refreshing (init) string The refresh button of the page while a load is running ("Refreshing…").
RelativeDays (init) Func<int, string> A moment less than a week ago, given the days ("3 days ago").
RelativeHours (init) Func<int, string> A moment less than 22 hours ago, given the hours ("3 hr ago").
RelativeJustNow (init) string A moment under 45 seconds ago ("just now").
RelativeMinutes (init) Func<int, string> A moment less than 45 minutes ago, given the minutes ("5 min ago").
RelativeTime DashboardRelativeTimeTexts The relative times as the DashboardFormat.FormatRelativeTime overload takes them.
RelativeYesterday (init) string A moment about a day ago ("yesterday").
RemoveFilter (init) Func<string, string> The accessible name of the button that removes a filter chip of a card, given the filter label ("Remove Region").
ResetFilters (init) string The button that restores every filter ("Reset").
Retry (init) string The button that loads a failed resource again ("Retry").
SearchFilter (init) Func<string, string> The accessible name of the search box of a filter menu, given the filter label ("Search Region").
SearchPlaceholder (init) string The placeholder of the search box of a filter menu ("Search…").
SelectPoint (init) string The accessible name of the group of buttons that select a data point of the compact chart drawing ("Select a data point"); the drawing of KlyChart makes its own bars, points and slices selectable instead.
SeverityCritical (init) string The badge of an error alert ("Critical").
SeverityInfo (init) string The badge of an informational alert ("Info").
SeverityResolved (init) string The badge of a resolved alert ("Resolved").
SeverityWarning (init) string The badge of a warning alert ("Warning").
Target (init) Func<string, string> The target line of a Gauge, given the formatted target ("Target: 80%").
Today (init) string The day heading of a Feed for the current day ("Today").
Updated (init) Func<string, string> The freshness line of the page and of the cards, given the relative time ("Updated 5 min ago").
VersusPrevious (init) Func<string, string> The caption of a Stat compared with a previous value, given the formatted value ("vs 900 previous period").
ViewAsTable (init) string The button that shows the block as a table ("View as table").
Views (init) string The accessible name of the view tabs ("Views").
Yesterday (init) string The day heading of a Feed for the previous day ("Yesterday").