Table of Contents

Class MBDatePicker

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

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

bool

BadgeStyle

The badge's style - see MBBadgeStyle, defaults to ValueBearing.

[Parameter]
public MBBadgeStyle BadgeStyle { get; set; }

Property Value

MBBadgeStyle

BadgeValue

The button's density.

[Parameter]
public string BadgeValue { get; set; }

Property Value

string

CultureInfo

The CultureInfo that determines the culture-specific format for dates according to the DateFormat.

[Parameter]
public CultureInfo? CultureInfo { get; set; }

Property Value

CultureInfo

DateFormat

Specification for date format

[Parameter]
public string DateFormat { get; set; }

Property Value

string

DateIsSelectable

Control whether a date is selectable by evaluating the method.

[Parameter]
public Func<DateTime, bool>? DateIsSelectable { get; set; }

Property Value

Func<DateTime, bool>

DateSelectionCriteria

Date selection criteria

[Parameter]
public MBDateSelectionCriteria? DateSelectionCriteria { get; set; }

Property Value

MBDateSelectionCriteria?

Density

The select's density.

[Parameter]
public MBDensity? Density { get; set; }

Property Value

MBDensity?

HasBadge

Determines whether the button has a badge - defaults to false.

[Parameter]
public bool HasBadge { get; set; }

Property Value

bool

Label

The label.

[Parameter]
public string Label { get; set; }

Property Value

string

MaxDate

Maximum date set by the consumer

[Parameter]
public DateTime MaxDate { get; set; }

Property Value

DateTime

MenuSurfacePositioning

Regular, fullwidth or fixed positioning/width. Overrides a value of FullWidth with Regular.

[Parameter]
public MBMenuSurfacePositioning MenuSurfacePositioning { get; set; }

Property Value

MBMenuSurfacePositioning

MinDate

Minimum date set by the consumer

[Parameter]
public DateTime MinDate { get; set; }

Property Value

DateTime

SelectInputStyle

The select style.

Overrides SelectInputStyle

[Parameter]
public MBSelectInputStyle? SelectInputStyle { get; set; }

Property Value

MBSelectInputStyle?

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

bool

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

Task

OnInitializedAsync()

protected override Task OnInitializedAsync()

Returns

Task

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()

Returns

Task