menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DatePickerMaskPlaceholder - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    MaskPlaceholder
    DatePickerMaskPlaceholder
    DateTimePickerMaskPlaceholder
    Inherited Members
    MaskPlaceholder.Day
    MaskPlaceholder.DayOfWeek
    MaskPlaceholder.Hour
    MaskPlaceholder.Minute
    MaskPlaceholder.Month
    MaskPlaceholder.Second
    MaskPlaceholder.Year
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved