Adding dependencies like Datatable plugins using requirejs
Summary:
On widget js, instead of 'https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js', how can I make it 'datatable' just like with 'jquery' and 'knockout' ?
Content (required):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
define(
// Dependencies
['jquery', 'knockout','navigation','https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js'],
// Module Implementation
function($,ko,navigation) {
// We recommend enabling strict checking mode
'use strict';
Tagged:
0