jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
13 lines (12 loc) • 516 B
text/typescript
/// <reference path="../../../jqwidgets-ts/jqwidgets.d.ts" />
function createFileUpload(selector)
{
// initialization options - validated in typescript
// jqwidgets.FileUploadOptions has generated TS definition
let options: jqwidgets.FileUploadOptions =
{
width: 300, uploadUrl: 'imageUpload.php', fileInputName: 'fileToUpload'
};
// creates an instance
let myFileUpload: jqwidgets.jqxFileUpload = jqwidgets.createInstance(selector, 'jqxFileUpload', options);
}