YUI.Use(new String[]{"dd-drag", "console", "dd-plugin"}, new YUICallback() {
@Override
public void ready(final YuiContext Y) {
Node node1 = parent.appendChild("<p>dragme1</p>");
Drag dd = Y.newDDDrag(DragConfig.create().node(node1));
//now a console dragable only at its title - using drag handle
final Console console1 = Y.newConsole(ConsoleConfig.create()).render().cast();
console1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[]{"h4"}));
console1.log("this console is only draggable by its title.");