Class MBDatePicker
A date picker styled to match the Material Theme date picker specification, using a modfied Material Theme select input as also applied in MBSelect<TItem>.
public class MBDatePicker : InputComponent<DateTime>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
MBDatePicker
- Implements
- Inherited Members
Constructors
MBDatePicker()
public MBDatePicker()
Properties
BadgeExited
When true collapses the badge.
[Parameter]
public bool BadgeExited { get; set; }
Property Value
BadgeStyle
The badge's style - see MBBadgeStyle, defaults to ValueBearing.
[Parameter]
public MBBadgeStyle BadgeStyle { get; set; }
Property Value
BadgeValue
The button's density.
[Parameter]
public string BadgeValue { get; set; }
Property Value
CultureInfo
The CultureInfo that determines the culture-specific format for dates according to the DateFormat.
[Parameter]
public CultureInfo? CultureInfo { get; set; }
Property Value
DateFormat
Specification for date format
[Parameter]
public string DateFormat { get; set; }
Property Value
DateIsSelectable
Control whether a date is selectable by evaluating the method.
[Parameter]
public Func<DateTime, bool>? DateIsSelectable { get; set; }
Property Value
DateSelectionCriteria
Date selection criteria
[Parameter]
public MBDateSelectionCriteria? DateSelectionCriteria { get; set; }
Property Value
Density
The select's density.
[Parameter]
public MBDensity? Density { get; set; }
Property Value
HasBadge
Determines whether the button has a badge - defaults to false.
[Parameter]
public bool HasBadge { get; set; }
Property Value
Label
The label.
[Parameter]
public string Label { get; set; }
Property Value
MaxDate
Maximum date set by the consumer
[Parameter]
public DateTime MaxDate { get; set; }
Property Value
MenuSurfacePositioning
[Parameter]
public MBMenuSurfacePositioning MenuSurfacePositioning { get; set; }
Property Value
MinDate
Minimum date set by the consumer
[Parameter]
public DateTime MinDate { get; set; }
Property Value
SelectInputStyle
The select style.
Overrides SelectInputStyle
[Parameter]
public MBSelectInputStyle? SelectInputStyle { get; set; }
Property Value
SuppressDefaultDate
Set to indicate that if the value is default(DateTime) then no date is initially shown and the panel will start with the current year and month
[Parameter]
public bool SuppressDefaultDate { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
NotifyOpened()
Do not use. This method is used internally for receiving the "dialog closed" event from javascript.
[JSInvokable]
public Task NotifyOpened()
Returns
OnInitializedAsync()
protected override Task OnInitializedAsync()
Returns
OnParametersSetAsync()
When overriding this, call await base.OnParametersSetAsync();
before any user code unless there is a very good reason not to.
protected override Task OnParametersSetAsync()