Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Adding dependencies like Datatable plugins using requirejs — Cloud Customer Connect
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

Received Response
12
Views
1
Comments

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!