Table of Contents

Class InternalDatePickerPanel

Namespace
Material.Blazor.Internal
Assembly
Material.Blazor.dll

For Material.Blazor internal use only.

public class InternalDatePickerPanel : InputComponent<DateTime>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
InternalDatePickerPanel
Implements
Inherited Members

Constructors

InternalDatePickerPanel()

public InternalDatePickerPanel()

Properties

CultureInfo

The CultureInfo that determines the culture-specific format of displaying 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?

MaxDate

Maximum date set by the consumer

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

Property Value

DateTime

MinDate

Minimum date set by the consumer

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

Property Value

DateTime

Parent

The parent date picker

[Parameter]
public MBDatePicker Parent { get; set; }

Property Value

MBDatePicker

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

NotifyOpened()

Causes the panel to display buttons on the first opening

public Task NotifyOpened()

Returns

Task

OnAfterRenderAsync(bool)

Material.Blazor components generally should not override this because it handles the case where components need to be adjusted when inside an MBDialog or MBCard.

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

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