Assets

After exectuting our Gulp or Webpack commands all builded files will be placed to starterkit/src/main/resources/static/assets folder and you can include your static js, css and media files in static folder then these files can be loaded globally or separately for your views.

Add Javascript File:

theme.addJavascriptFile("/assets/js/custom/intro.js");

Add Css Files:

theme.addCssFile("/assets/css/custom/intro.css");

Add Vendors:

theme.addVendors(new string[] {"datatables", "formrepeater"});

Add Vendor File:

KTTheme.addVendor("datatables");

Global files can be added inside _keenthemes/BootstrapBase.cs.

KTTheme.addVendor("datatables");
theme.addJavascriptFile("/assets/js/custom/intro.js");
theme.addVendors(new string[] {"datatables", "formrepeater"});

You can load a file for separate view inside your page view razor file.

String[] vendors = {"amcharts", "amcharts-maps", "amcharts-stock"};
    theme.addVendors(vendors);
Preview Get Help Buy Now