Results 1 to 3 of 3

Thread: [SOLVED] Sticky Tooltip - howto?

  1. #1
    ploeger's Avatar
    ploeger is offline Senior Member
    Join Date
    Oct 2008
    Posts
    74
    Rep Power
    6

    Question [SOLVED] Sticky Tooltip - howto?

    Hi!

    I want to use the tooltip in my zimlet to show some details. In the content of the tooltip is a link, that can be clicked. However, moving away from the matched text closes the tooltip.

    I read something about a sticky tooltip, configured that in my zimlet definition file, but it doesn't work somehow. Perhaps, because I fill the tooltip during runtime, not by an actionUrl.

    Can somebody tell me how to develop such a tooltip or point me to examples?

    Thanks.

    Kind regards
    Dennis
    Release 8.0.6.GA.5922.UBUNTU12.64 UBUNTU12_64 NETWORK edition.

  2. #2
    ploeger's Avatar
    ploeger is offline Senior Member
    Join Date
    Oct 2008
    Posts
    74
    Rep Power
    6

    Default

    Hi!

    Ah! I got it. You have to override ZmZimletBase.prototype.hoverOver and remove the code with the AjxCallback from the popup-call. After that, also override hoverOut with nothing.

    That way your popup stays when you move out the matched element and even if you move the mouse over the popup.

    You have to be sure to close the popup afterwards using a close button or something or else it stays.

    Kind regards
    Dennis
    Release 8.0.6.GA.5922.UBUNTU12.64 UBUNTU12_64 NETWORK edition.

  3. #3
    ploeger's Avatar
    ploeger is offline Senior Member
    Join Date
    Oct 2008
    Posts
    74
    Rep Power
    6

    Default

    For clarification:

    This basically means, that you have to create a method in your zimlet named "hoverOver":

    myzimlet.prototype.hoverOver = function (object,context,x,y,span) {...}

    and add the following code into it:

    Code:
    var shell = DwtShell.getShell(window);
    var tooltip = shell.getToolTip();
    tooltip.setContent('<div id="zimletTooltipDiv"/>', true);
    this.toolTipPoppedUp(span, object, context, document.getElementById("zimletTooltipDiv"));
    tooltip.popup(x, y, true);
    (That is basically the same code as in the original with one call to AjxCallback left out, see http://files.zimbra.com/docs/zimlet/...etBase.js.html)

    After that, also create a method "hoverOut" without any code:

    Code:
    myzimlet.prototype.hoverOut = function (object,context,span) {
    };
    


    That's it.

    Kind regards
    Dennis
    Release 8.0.6.GA.5922.UBUNTU12.64 UBUNTU12_64 NETWORK edition.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sticky Notes Zimlet Problem
    By bubarooni in forum Administrators
    Replies: 5
    Last Post: 11-26-2010, 01:43 AM
  2. Replies: 1
    Last Post: 02-12-2008, 09:14 AM
  3. Howto Localize Zimlets?
    By ClausA in forum Zimlets
    Replies: 2
    Last Post: 11-19-2007, 06:03 AM
  4. Tooltip
    By rema in forum Developers
    Replies: 0
    Last Post: 11-27-2006, 01:41 AM
  5. SUSE Linux Enterprise Server 9 NAT Install HOWTO
    By LMStone in forum Installation
    Replies: 0
    Last Post: 11-03-2006, 02:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •