Class InternalDatePickerPanel
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
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
MaxDate
Maximum date set by the consumer
[Parameter]
public DateTime MaxDate { get; set; }
Property Value
MinDate
Minimum date set by the consumer
[Parameter]
public DateTime MinDate { get; set; }
Property Value
Parent
The parent date picker
[Parameter]
public MBDatePicker Parent { 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
NotifyOpened()
Causes the panel to display buttons on the first opening
public Task NotifyOpened()
Returns
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
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()