Ability to choose month on calendar
Hello, is it possible to choose month by clicking month name on left sided calendar? click month and then month list appears and you choose desired month
Hello, is it possible to choose month by clicking month name on left sided calendar? click month and then month list appears and you choose desired month
Hi, tornikezhizh,
Sure, it's possible. You could just add this code inside of calendar config
datePicker : {
editMonth : true
}
And you'll be good to go
thank you, is there any option to disable year selecting? now with editMonth = true, I can select years also, I would prefer not to make years selectable
You could disable the yearButton like this
calendar.datePicker.tbar.widgetMap.yearButton.disabled = true
it helped, thank you
To make this easier, I have proposed the following new config for DatePicker
widgets so you can just configure this right into your Calendar
instead if having to inject the settings after creation.
Hopefully, I get get approval for this new API which will supersede the editMonth
setting:
it would be better, but for I can't find it in documentation, probably you want to make it possible in future right? currently it is not available
As I said, it's an API proposal for now. I'm hopeful of getting approval for it.