RayCraftDocs
v1.0.3 raycraft.dev
On this page

YearPicker

Free

Chooses a year from a grid of twelve years with buttons for earlier and later pages. The value is an int. Typing, errors and focus behave as in DatePicker.

Example

YearPicker control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
HelperTextstringHint shown below the field.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
MaxYearint?Latest selectable year.
MinYearint?Earliest selectable year.
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
Valueint?Current value. Use with @bind-Value.

Events

EventTypeDescription
ValueChangedEventCallback<int?>Raised when the value changes.

Package

YearPicker is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.