Script.aculo.us Draggables

public class DragDropExamplePage extends WebPage {
    public DragDropExamplePage() {
        DraggableTarget cart = new DraggableTarget("cart") {
            protected void onDrop(Component input, AjaxRequestTarget target) {
                System.out.println(input + " dropped on the target");
            }
        };

        Label product = new Label("product");
        product.addBehavior(new DraggableBehavior());

        add(product);
        add(cart);
    }
}

original component published by Ryan Sonnek


Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Advanced
- Activity

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

or Sign Up  

Other Features

Add Content