Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    how to get view selected in calendar?

    Can i get current view selected (day, week or month) ?
    And can i have addTabXXXClickHandler? (ex. addTabDayClickHandler)
    sorry for my bad english.
    thank.
    navin

    #2
    we haven't documented this functionality yet, but there are the following methods for determining which view is selected:
    dayViewSelected(), weekViewSelected, and monthViewSelected().
    Also currently undoc'd is the calendar.mainView, which is the autoChild (search 'autoChild' in docs) tabset in question. You could check myCalendar.mainView.getSelectedTab() for the selected tab (besides the methods listed above), and set mainViewProperties: { tabSelected : function .....} to handle tab clicking.

    Comment


      #3
      Note these APIs would need to be called via JSNI for now.

      Comment

      Working...
      X