-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
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
2 | No.2 Revision |
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