Topic: how to auto close the DatePicker after picking a date

Water Damage Network pro asked 5 years ago


how to Auto close the DatePicker after picking a date


Damian Gemza staff answered 5 years ago


Dear @Water Damage Network 

The Datepicker's config object got "closeAfterSelect" field. Set it to closeAfterSelect: true, and your date picker will be closed after selecting the date.

Please check also our Datepicker Docs.

Best Regards,

Damian


Water Damage Network pro commented 5 years ago

public myDatePickerOptions: IMyOptions= {
closeAfterSelect: true
};
 
Type '{ dateFormat: string; closeAfterSelect: boolean; }' is not assignable to type 'IMyOptions'.
Object literal may only specify known properties, and 'closeAfterSelect' does not exist in type 'IMyOptions'.

Arkadiusz Idzikowski staff commented 5 years ago

Please show me the code of your 'myDatePickerOptions' object.


gordonBP3 pro commented 5 years ago

Thanks for this answer. I was looking for the same thing. The option you reference works for me, but it's not listed in the online documentation.


Arkadiusz Idzikowski staff commented 5 years ago

You can find information about inputs, outputs and options in the API section (you need to switch tabs at the top of the documentation page).



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.0
  • Device: Laptop
  • Browser: chrome
  • OS: Ubantu
  • Provided sample code: No
  • Provided link: No