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>.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBDatePicker : InputComponent<DateTime>, IDisposable
Properties
| Improve this Doc View SourceDateFormat
Specification for date format
Declaration
public string DateFormat { get; set; }
Property Value
Type | Description |
---|---|
String |
DateIsSelectable
Control whether a date is selectable by evaluating the method.
Declaration
public Func<DateTime, bool> DateIsSelectable { get; set; }
Property Value
Type | Description |
---|---|
Func<DateTime, Boolean> |
DateSelectionCriteria
Date selection criteria
Declaration
public MBDateSelectionCriteria? DateSelectionCriteria { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBDateSelectionCriteria> |
Density
The select's density.
Declaration
public MBDensity? Density { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBDensity> |
Label
The label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
String |
MaxDate
Maximum date set by the consumer
Declaration
public DateTime MaxDate { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
MenuSurfacePositioning
Declaration
public MBMenuSurfacePositioning MenuSurfacePositioning { get; set; }
Property Value
Type | Description |
---|---|
MBMenuSurfacePositioning |
MinDate
Minimum date set by the consumer
Declaration
public DateTime MinDate { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
SelectInputStyle
The select style.
Overrides SelectInputStyle
Declaration
public MBSelectInputStyle? SelectInputStyle { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBSelectInputStyle> |
SupressDefaultDate
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
Declaration
public bool SupressDefaultDate { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
Overrides
| Improve this Doc View SourceNotifyOpened()
Do not use. This method is used internally for receiving the "dialog closed" event from javascript.
Declaration
public async Task NotifyOpened()
Returns
Type | Description |
---|---|
Task |
OnDisabledSetCallback()
Callback for value the Disabled value setter.
Declaration
protected void OnDisabledSetCallback()
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
Material.Blazor.Internal.InputComponent<System.DateTime>.OnInitializedAsync()
|
Improve this Doc
View Source
OnValueSetCallback()
Callback for value the value setter.
Declaration
protected void OnValueSetCallback()