July 2013
Beginner
246 pages
5h 3m
English
Follow these steps and see how easy is to incorporate an existing JavaScript component in Vaadin applications:
javascriptspinner package:@JavaScript({ "spinner.js",
"http://code.jquery.com/jquery-1.9.1.js",
"http://code.jquery.com/ui/1.10.3/jquery-ui.js" })
public class Spinner extends AbstractJavaScriptComponent {
}spinner.js beside the previous class:
javascriptspinner_Spinner = function() {
var e = this.getElement();
e.innerHTML = "<input id='spinner' />";
var spinner = $("#spinner").spinner();
};