Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-19-2007, 02:11 PM
Junior Member
 
Posts: 7
Default Creating a tool tip

I would like to have a tool tip pop up when a panel item is clicked. Can someone please show me how to do this. The code I have so far is

Zimlet_Name.prototype.singleClicked = function() {
var toolTip = new DwtToolTip(this.getShell());
toolTip.setContent('Here is some text');
toolTip.popup();
}

When I click on the panel item I get 2 errors.

1. "Error in parsing value for property 'left'. Declaration dropped."
2. "Error in parsing value for property 'top'. Declaration dropped."

I assume I need to set these properties somehow but I don't know where.
Reply With Quote
  #2 (permalink)  
Old 10-24-2007, 12:56 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by cbl016 View Post
I would like to have a tool tip pop up when a panel item is clicked. Can someone please show me how to do this. The code I have so far is

Zimlet_Name.prototype.singleClicked = function() {
var toolTip = new DwtToolTip(this.getShell());
toolTip.setContent('Here is some text');
toolTip.popup();
}

When I click on the panel item I get 2 errors.

1. "Error in parsing value for property 'left'. Declaration dropped."
2. "Error in parsing value for property 'top'. Declaration dropped."

I assume I need to set these properties somehow but I don't know where.
There is a existing method (tooltipPoppedUp IIRC - I need to double check the code) that you can override to handle when tooltip messages are poped up.Take a look at ZmZimletBase.js.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.