You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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';

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!