Announcement

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

    Timeline event hover

    How to customize the text in an event hover window? I have: "03.10.2016 12:00vormittags- 11:59nachmittags".
    But I need instead of "vormittags" "AM" or "PM", or only "03.10.206" (since this is a whole-day-event).
    I saw some HTMLHoverCustomizers in the calendar, but I don't want to completely change the HTML, only the header text/formats. How to achieve this ?
    Click image for larger version

Name:	Bildschirmfoto 2016-08-18 um 13.01.40.png
Views:	37
Size:	19.0 KB
ID:	239747

    Using smartgwt 6.0p power

    #2
    Ok I found
    calendar.setTimeFormatter(TimeDisplayFormat.TOSHORTPADDED24HOURTIME);

    But there is no TimeDisplayFormat to supress the time. So for getting only the date. How to achieve this?

    Comment


      #3
      The "header" text in the hoverHTML of the various entities can't currently be customized separately, in the way you're after.

      For EventCanvas hovers, you'll have to install an EventCanvasHoverHTMLCustomizer(), which overrides the entire hover HTML.

      Comment


        #4
        wouldn't be possible to have a similar api like this?
        calendar.setTimeFormatter(TimeDisplayFormat.TOSHORTPADDED24HOURTIME);
        it would be like this:
        calendar.setTimeFormatter(TimeDisplayFormat.TOONLYDATE);
        or similar ?

        Comment


          #5
          Yes, it might be possible, but it isn't currently supported, or planned to be supported. You could consider the Feature Sponsorship program if it's important for you.

          Comment

          Working...
          X