Extension support is provided to certain controls but you can render all the Essential JavaScript components in LightSwitch HTML Application through the Custom Control option. This section explains how to use Essential JavaScript components in LightSwitch HTML Application with the Custom Control option. Refer to the necessary scripts and theme files by the Syncfusion EJ components in the <head> section as follows in the default.html page. HTML<head> <!--Contains the necessary theme for the components--> <link href="default-theme/ej.widgets.all.min.css" rel="stylesheet" /> <!--dependency script files--> <script src="scripts/jquery-1.10.2.min.js"></script> <script src="scripts/jquery.easing.1.3.js"></script> <script src="scripts/jquery.globalize.js"></script> <!--Contains the necessary scripts to render all the web components--> <script src="scripts/ej.web.all.min.js"></script> </head> In the above code example, scripts refers to the folder that contains the script files. Make sure that the above mentioned script files are loaded properly. You can also use the CDN links, instead of referring the scripts and theme files locally. Refer to the following code example. HTML<head> <!--Contains the necessary theme for the components--> <link href="https://cdn.syncfusion.com/js/web/flat-azure/ej.web.all-latest.min.css" rel="stylesheet" /> <!--dependency script files--> <script src="https://code.jquery.com/jquery-1.10.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery- easing/1.3/jquery.easing.min.js"></script> <script src="https://ajax.aspnetcdn.com/ajax/globalize/0.1.1/globalize.js"></script> <!--Contains the necessary scripts to render all the web components--> <script src="https://cdn.syncfusion.com/js/web/ej.web.all-latest.min.js"></script> </head> You can refer the following link to know more about the necessary scripts files and dependencies script files. https://help.syncfusion.com/js/dependencies
Add Custom Control to the Screen
Figure 1: Output You can download the complete sample from the following location. https://www.syncfusion.com/downloads/support/directtrac/general/ze/Index1595393160 You can refer the following Common User Guide for LightSwitch to know more about getting started with the components. Under each component, the Concepts and Features section is provided, that explains about the features of the particular component. https://help.syncfusion.com/lightswitch/html-client/lightswitch-for-html-client You can also refer the following class reference link for JavaScript that provides all the properties, methods and events supported by each component. https://help.syncfusion.com/api/js/global To know more about the Custom Control option then refer the following link. https://docs.microsoft.com/en-us/previous-versions/jj733569(v=vs.140)?redirectedfrom=MSDN
|
This page will automatically be redirected to the sign-in page in 10 seconds.