Class DatePickerMaskPlaceholder
Provides configuration for placeholder text to be displayed in a masked SfDatePicker<TValue> control, based on the Format, until the user enters a value.
Inherited Members
Namespace: Syncfusion.Blazor.Calendars
Assembly: Syncfusion.Blazor.dll
Syntax
public class DatePickerMaskPlaceholder : MaskPlaceholder
Remarks
The DatePickerMaskPlaceholder class enables customization of day, month, and year placeholder text in the SfDatePicker<TValue> input mask.
Its properties are effective only when EnableMask is set to true.
This class inherits from MaskPlaceholder, which provides the base structure for mask placeholder customization.
Examples
This example demonstrates how to configure custom placeholders for day, month, and year segments in a date picker mask.
<SfDatePicker TValue="DateTime" EnableMask="true">
<DatePickerMaskPlaceholder Day="day" Month="month" Year="year"></DatePickerMaskPlaceholder>
</SfDatePicker>
Constructors
DatePickerMaskPlaceholder()
Declaration
public DatePickerMaskPlaceholder()
Methods
OnInitializedAsync()
Executes component initialization logic. Notifies the parent Syncfusion.Blazor.Calendars.Interfaces.IMaskPlaceholder of updated child placeholder properties.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous operation. |
Remarks
This method is called by the framework during the asynchronous initialization of the component. It ensures that any parent component implementing Syncfusion.Blazor.Calendars.Interfaces.IMaskPlaceholder is notified of property changes, supporting proper propagation of mask placeholder configuration for child components.