calendarnavigator.js revision 829f44d633f4910c12181f3295e5c6b996d7e559
150N/A * Provides a plugin which adds navigation controls to Calendar. 150N/A * @module calendarnavigator 150N/A * A plugin class which adds navigation controls to Calendar. 150N/A * @class CalendarNavigator * The namespace for the plugin. This will be the property on the widget, which will * reference the plugin instance, when it's plugged in. * The NAME of the CalendarNavigator class. Used to prefix events generated * @default "pluginCalendarNavigator" * Static property used to define the default attribute * configuration for the plugin. * The number of months to shift by when the control arrows are clicked. * @attribute shiftByMonths * The CSS classnames for the calendar navigator controls. * @property CALENDARNAV_STRINGS * The template for the calendar navigator previous month control. * @property PREV_MONTH_CONTROL_TEMPLATE * The template for the calendar navigator next month control. * @property NEXT_MONTH_CONTROL_TEMPLATE * The initializer lifecycle implementation. Modifies the host widget's * render to add navigation controls. * @param {Object} config The user configuration for the plugin // After the host has rendered its UI, place the navigation cotnrols * The initializer destructor implementation. Responsible for destroying the initialized * Private utility method that subtracts months from the host calendar date * based on the control click and the shiftByMonths property. * @method _subtractMonths * @param {Event} ev Click event from the controls * Private utility method that adds months to the host calendar date * based on the control click and the shiftByMonths property. * @param {Event} ev Click event from the controls * Private render assist method that renders the previous month control * @method _renderPrevControls * Private render assist method that renders the next month control * @method _renderNextControls * Protected render assist method that initialized and renders the navigation controls. * @method _initNavigationControls },
'@VERSION@' ,{
requires:[
'plugin',
'classnamemanager',
'datatype-date',
'node',
'substitute']});