I am using scheduler toolbar and I have datepicker to change the date of scheduler and also buttons next and previous date to navigate the dates. I need to update the datepicker on next or prev button click. I am looking at the documentation for something like scheduler.toolbar.getWidgets() or something similar but can't find anything to access the widgets.
I actually tried to use that, but I get only the generic Widget calls on the date picker. The only way I manage to change the date is if I do this:
scheduler.tbar.widgetMap['schedulerDatepicker'].input.value = new Date()
and then I have to also take care of the formatting? Isn't there some function which can handle this? Also about the localization, I would like to pass the locale for formatting to the date picker and let it just handle it. Is this possible? Or I must use the locale manager?