Announcement

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

    smargwt calendar shows hours and minutes. value 00:00 is appended in calendar event text and mouse hover

    As per my requirement , calendar event start date and end date don't have hours, minutes ans seconds. I does not want to show hours,minutes,seconds text in description and on text hover for a calendar event

    For text I have customized getDayBodyHTML method to make it empty string.
    How can i achieve this on mouse hover,

    #2
    Please confirm your SmartGWT version, and which Calendar View you're using - the MonthView?

    Comment


      #3
      If you're using the MonthView, you can use this function to modify the text hover:

      calendar.setMonthViewHoverHTMLCustomizer(new MonthViewHoverHTMLCustomizer() {
      @Override
      public String getMonthViewHoverHTML(Date currentDate, CalendarEvent[] events) {
      return "your string";
      }
      });

      Instead if you're using the daily (or weekly i suppose) view you can use this function:
      calendar.setEventHoverHTMLCustomizer(new EventHoverHTMLCustomizer() {

      @Override
      public String getEventHoverHTML(CalendarEvent calendarEvent, EventWindow eventWindow) {
      return "your string";
      }
      });

      Sorry for my English but im italian :rolleyes:

      Comment


        #4
        Your English is great, thanks for jumping in to help out!

        Comment

        Working...
        X