Announcement

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

    No way to manipulate calendar event hover?

    SmartGWT 3.0 LGPL 2012-11-01

    Looks like most issues customers report against our software concern SmartGWT "problems" we don't have solutions for. Sorry for all the posts...

    It seems to me there's no way to manipulate the calendar event hover HTML? There's no method in the API and no hover customizer either. This forum has a number of similar posts but no real answer that works for me.
    Last edited by fhisg; 2 Nov 2012, 11:42. Reason: Removed unrelated links

    #2
    You linked to 3 completely random threads about unrelated topics - what are you trying to do, fake widespread interest? :)

    An API for this exists in SmartClient. You could access it via JSNI now; we'll add a wrapper for it (no ETA available, sorry).

    Comment


      #3
      Originally posted by Isomorphic View Post
      You linked to 3 completely random threads about unrelated topics - what are you trying to do, fake widespread interest? :)
      Absolutely not, I'm really sorry. I have no idea how that happened...I'm unable to find the related posts again but I guess searching for "calendar event hover" will bring folks close. Sorry.

      Originally posted by Isomorphic View Post
      An API for this exists in SmartClient. You could access it via JSNI now; we'll add a wrapper for it (no ETA available, sorry).
      That looks promising. However, I've got no clue yet as for how to integrate that into my SmartGWT Calendar. Need to look that up first. I used JSNI in the past but not in combination with existing widgets.

      Comment


        #4
        Originally posted by fhisg View Post
        That looks promising. However, I've got no clue yet as for how to integrate that into my SmartGWT Calendar. Need to look that up first. I used JSNI in the past but not in combination with existing widgets.
        Ok, so I did (reading https://developers.google.com/web-to...dingBasicsJSNI once more) and I'm stuck. I've got two (mental?) obstacles:
        • need to somehow "override" getEventHoverHTML() from SmartClient but such a mechanism doesn't really exist in JavaScript
        • if overriding then I need to access to the actual (SmartClient) calendar instance from JSNI code, or don't I?


        I'm sure there must be examples in this forum as for how to go about this but the JSNI-related questions I read concern other aspects.
        Last edited by fhisg; 16 Nov 2012, 14:53.

        Comment


          #5
          No hints, sad...
          Instructions as for how to achieve that could serve as guidelines for similar cases. In fact, an FAQ entry or a wiki page describing something along the lines of "How to interact with SmartClient" or "How to override SmartClient functions" or "How to access SmartClient functionality not yet available in SmartGWT" would help a lot.
          Possibly not there yet because you don't want to encourage folks to go down that road...
          Last edited by fhisg; 16 Apr 2013, 05:08.

          Comment


            #6
            Hello,

            If anyone is still interested. That is the solution:

            Code:
            	static public native void initFunctions() /*-{
            
            		$wnd.isc.Calendar.addProperties({
            			getEventHoverHTML : function(event, eventWindow) {
            				return "blablabla";
            			}
            		})
            	}-*/;
            regards,

            Peter

            Comment


              #7
              thank you retep,

              it's exactly what I was looking for.

              Comment

              Working...
              X