public void test(final Node parent) {
YUI.Use(new String[]{"dial", "console"}, new YUICallback() {
@Override
public void ready(final YuiContext Y) {
Dial dial = Y.newDial(DialConfig.create()
.centerButtonDiameter(2)
.min(-100)
.max(100)
.stepsPerRevolution(10)
);
final Console console = Y.newConsole().render().cast();
dial.on("valueChange", new EventCallback<WidgetEvent>() {
@Override
public void call(WidgetEvent e) {
console.log("valuechange : "+e.newValInt());
}
});
dial.render(parent);
}
});
}