Class MaskPlaceholder
The MaskPlaceholder property is used to set the text that is shown as a hint or placeholder in an input field until the user enters a value. It can be used to provide additional context or instructions to the user about the format that is expected for the input.
Namespace: Syncfusion.Blazor.Calendars
Assembly: Syncfusion.Blazor.dll
Syntax
public class MaskPlaceholder : OwningComponentBase
Remarks
The MaskPlaceholder
class properties will work when enabling the EnableMask property.
Constructors
MaskPlaceholder()
Declaration
public MaskPlaceholder()
Properties
Day
Gets or sets the text that is shown as a hint or placeholder until the user enters a value in the day segment of the date input.
Declaration
public string Day { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Remarks
This property is typically used with input fields that have a date mask, which is a predefined Format that constrains the user's input.
For example, a date mask might require that the user enter a date in the format mm/dd/yyyy
, with the day segment being the dd
part of the format.
In this case, the Day property might be set to dd
to indicate to the user the expected format of the day that they should enter.
DayOfWeek
Gets or sets the text that is shown as a hint or placeholder until the user enters a value in the day of week segment of the datetime input .
Declaration
public string DayOfWeek { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Remarks
This property is typically used with input fields that have a date mask, which is a predefined Format that constrains the user's input.
For example, a date mask might require that the user enter a date in the format dddd,dd/mm/yyyy
, with the day of week segment being the dddd
part of the format.
In this case, the Second property might be set to dddd
to indicate to the user the expected format of the day of week that they should enter.
Hour
Gets or sets the text that is shown as a hint or placeholder until the user enters a value in the hour segment of datetime input.
Declaration
public string Hour { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Remarks
This property is typically used with input fields that have a date mask, which is a predefined Format that constrains the user's input.
For example, a date mask might require that the user enter a date in the format mm/dd/yyyy hh:mm
, with the hour segment being the hh
part of the format.
In this case, the Hour property might be set to hh
to indicate to the user the expected format of the hour that they should enter.
Minute
Gets or sets the text that is shown as a hint or placeholder until the user enters a value in the minute segment of the datetime input.
Declaration
public string Minute { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Remarks
This property is typically used with input fields that have a date mask, which is a predefined Format that constrains the user's input.
For example, a date mask might require that the user enter a date in the format mm/dd/yyyy hh:mm
, with the minute segment being the mm
part of the format.
In this case, the Minute property might be set to mm
to indicate to the user the expected format of the minute that they should enter.
Month
Gets or sets the text that is shown as a hint or placeholder until the user enters a value in the month segment of date input.
Declaration
public string Month { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Remarks
This property is typically used with input fields that have a date mask, which is a predefined Format that constrains the user's input.
For example, a date mask might require that the user enter a date in the format mm/dd/yyyy
, with the month segment being the mm
part of the format.
In this case, the Month property might be set to mm
to indicate to the user the expected format of the month that they should enter.
Second
Gets or sets the text that is shown as a hint or placeholder until the user enters a value in the second segment of the datetime input.
Declaration
public string Second { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Remarks
This property is typically used with input fields that have a date mask, which is a predefined Format that constrains the user's input.
For example, a date mask might require that the user enter a date in the format mm/dd/yyyy hh:mm:ss
, with the second segment being the ss
part of the format.
In this case, the Second property might be set to ss
to indicate to the user the expected format of the second that they should enter.
Year
Gets or sets the text that is shown as a hint or placeholder until the user enters a value in the year segment of date input.
Declaration
public string Year { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Remarks
This property is typically used with input fields that have a date mask, which is a predefined Format that constrains the user's input.
For example, a date mask might require that the user enter a date in the format mm/dd/yyyy
, with the year segment being the yyyy
part of the format.
In this case, the Year property might be set to yyyy
to indicate to the user the expected format of the year that they should enter.