Blazor コントロール
プレースホルダー
コントロール > DateTimeEditor > DateTimePicker の概要 > プレースホルダー

DatePicker lets you display a watermark text in the DatePicker control when nothing is selected or entered in it. You can add a watermark text to the DatePicker control using Placeholder property of the C1DateTimePicker class, which prompts user to select or enter the date and time using the drop-down button of the control.

The following code shows the usage of the Placeholder property to add a watermark text in the DateTimePicker control:

C#
コードのコピー
<C1DateTimePicker Placeholder="Enter Date and Time" DropDownBehavior="@DropDownBehavior.HeaderTap"></C1DateTimePicker>