Is there a way to specify a dragSource for a document in my briefcase?
Is there a way to specify a dragSource for a document in my briefcase?
You can indicate a briefcase item is a valid dragsource in your Zimlet Definition File XML with:
<dragSource type="ZmBriefcaseItem" />
In your zimlet, in the doDrop(obj) method, the ZmBriefcaseItem object will be passed in. You can check obj.type for "BRIEFCASE_ITEM".
<dragSource type="ZmBriefcaseItem" /> worked
but, the object in the js file is undefined:
com_zimbra_fooHandlerObject.prototype.doDrop =
function(obj) {
var type = obj.TYPE;
alert(obj.TYPE);
...
}
I found with ZmBriefcaseItem, you have to check for obj.type (lowercase), not obj.TYPE.
That worked. I am using the desktop client so I can't open a browser to do some js debugging (at least I don't think I can). How can I see what methods are available for this object? Do I need ot download the source code?
Thanks..
Here's a link to the Zimlet Developer's Guide:
ZCS 6.0:Zimlet Developers Guide:Introduction - Zimbra :: Wiki
There is a section on using Zimbra Desktop for development, accessing the interface via a browser, turning on logging, etc:
ZCS 6.0:Zimlet Developers Guideev Environment Setup - Zimbra :: Wiki
Last edited by sposetti; 01-20-2010 at 03:57 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)