Reputation: 317
Help. I'm new to java script so thought I'd try using TypeScript to make my life a little easier.... but I cannot figure out where to start when trying to create a jquery UI Widget using TypeScript.
I've created UI Widgets in java script before and know that at its most basic I'm aiming for;
$.widget( "nmk.progressbar", {
_create: function() {
var progress = this.options.value + "%";
this.element.addClass("progressbar").text( progress );
}
});
(From the jQuery UI Widget Factory tutorial)
Is it even possible to create a jquery UI Widget using TypeScript?
Any help would be greatly appreciated!
Upvotes: 1
Views: 1786
Reputation: 221212
You should just need to reference the jqueryui.d.ts file from DefinitelyTyped to get type information.
Upvotes: 1