JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Date & Time Pickers › Clear selection from date picker? › Reply To: Clear selection from date picker?
February 15, 2021 at 6:37 am
#101497
admin
Keymaster
Hi davout,
You can use the “nullable” property in your component.
Please, take a look at this code snippet:
<smart-date-time-picker [autoClose]="true" [calendarButton]="true" [dropDownPosition]="'bottom'" [dropDownDisplayMode]="'calendar'" [formatString]="'dd-MM-yyyy'" [nullable]="true" [placeholder]="'From'" [autoClose]="true" [value]="null"></smart-date-time-picker><smart-date-time-picker [autoClose]="true" [calendarButton]="true" [dropDownPosition]="'bottom'" [dropDownDisplayMode]="'calendar'" [formatString]="'dd-MM-yyyy'" [nullable]="true" [placeholder]="'To'" [autoClose]="true" [value]="null"></smart-date-time-picker>
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/