Announcement

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

    Compact Calendar

    Hello,

    How can we hide prev/next arrows on the compact calendar.
    Code:
          calendar.setShowDayView(false);  
            calendar.setShowWeekView(false);  
            calendar.setShowOtherDays(false);  
            calendar.setShowDayHeaders(false);  
            calendar.setShowDatePickerButton(false);  
            calendar.setShowAddEventButton(false);  
            calendar.setDisableWeekends(false);          
            calendar.setShowDateChooser(false);  
            calendar.setCanCreateEvents(false);
    I see there is
    setShowControls method , but setting that method to false will hide previousButton , nextButton as well as the month/year.

    Thanks.

    #2
    Because "nextButton" and "previousButton" are AutoChildren, setting showNextButton:false showPreviousButton:false will get rid of them. There's no formal setters for this, so call it as setAttribute("showNextButton", false).

    Comment


      #3
      Thanks for the quick response.
      Unfortunately setAtrribute method is not visible.

      Thanks.
      Last edited by stonebranch1; 22 May 2012, 14:27.

      Comment


        #4
        Sorry, what does this mean? It's "protected", so you'll need to make a (trivial) subclass to use it.

        Comment


          #5
          I`m sorry ... my bad . Didn`t see that it is protected .

          Comment

          Working...
          X