Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ydn-javascript · Yahoo! User Interface Library Group

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12955
  • Category: JavaScript
  • Founded: Dec 15, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Drag and Drop a Module   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages Sort by Date  
#15091 From: "michael.aram" <michael.aram@...>
Date: Sun Jul 1, 2007 4:39 pm
Subject: Drag and Drop a Module
michael.aram
Send Email Send Email
 
hi!

I'm working on a DD website based on the "sortable list" example.

the problem is, that my draggable divs are no "yui modules" by
default, i.e. i cant hide them easily

what is the best way to inherit the module behaviour?

I cannot simply say

YAHOO.extend(YAHOO.xop.DDPortlet, YAHOO.widget.Module, {...}

because my "DDPortlet" is already an extension of DDProxy:


YAHOO.xop.DDPortlet = function(id, sGroup, config) {
YAHOO.xop.DDPortlet.superclass.constructor.call(this, id, sGroup,
config);
Dom.setStyle(this.getDragEl(), "opacity", 0.4);
this.goingUp = false;
this.lastY = 0;
};


YAHOO.extend(YAHOO.xop.DDPortlet, YAHOO.util.DDProxy, {...}


what is the best approach here?




 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help