UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

15 lines 620 B
/// <reference path="../../../jqwidgets-ts/jqwidgets.d.ts" /> function createRating(selector, secondSelector) { // initialization options - validated in typescript // jqwidgets.RatingOptions has generated TS definition var options = { width: 350, height: 35 }; // creates an instance var myRating = jqwidgets.createInstance(selector, 'jqxRating', options); myRating.addEventHandler('change', function (event) { document.getElementById(secondSelector).innerHTML = '<span>' + event.value + '</span>'; }); } //# sourceMappingURL=typescript-rating.js.map