Revision history [back]

click to hide/show revision 1
initial version

answered 2015-12-15 03:22:18 +0800

cor3000 gravatar image cor3000

ZK Team

Hi Neus.

since drag and drop initially happens on the client side you can override a client side functions to customize this behavior (http://books.zkoss.org/wiki/ZKClient-sideReference/Customization/Drag-and-Drop_Effects)

I created a small example to show the basic principle http://zkfiddle.org/sample/1rbom3p/1-custom-drag-and-drop

It uses data-attributes to identify related divs to clone them into the same dragContainer. But any mechanism will work.

I use the client/attribute namespace to set the data attributes, to assign these values from java you can use setClientDataAttribute (or in ZK <=7 setWidgetAttribute)

Robert

Hi Neus.

since drag and drop initially happens on the client side you can override a number of client side functions to customize this behavior (http://books.zkoss.org/wiki/ZKClient-sideReference/Customization/Drag-and-Drop_Effects)

I created a small example to show the basic principle http://zkfiddle.org/sample/1rbom3p/1-custom-drag-and-drop

It uses data-attributes to identify related divs to clone them into the same dragContainer. But any mechanism will work.

I use the client/attribute namespace to set the data attributes, to attributes. To assign these values from java you can use setClientDataAttribute (or in ZK <=7 setWidgetAttribute)

Robert

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More