AnsweredAssumed Answered

How to use AlpacaJS with RequireJS in Ctools?

Question asked by Dan Keeley on Mar 14, 2019
Latest reply on Mar 28, 2019 by Dan Keeley

Hi, best explained with an image:

 

alpaca.PNG

So, this is a NON require dashboard. You can see that alpaca uses handlebars and bootstrap.

That all works perfectly. (In some more complex cases there are additional js files for bootstrap plugins etc)

 

So; How should it work in a requireJS dashboard?

 

I thought it would be something along the lines of a previous blog post:

 

RequireJS, JQuery Plugins and #Pentaho CDE | Codeks Blog

 

But alas, that takes no account of multiple JS files! I'm not even convinced that blog content works any more, or is even correct.

 

My problem is, there's quite some documentation on requireJS, and even some documentation from ctools, but there's nothing which combines using CDE and using requireJS. Also all the documentation assumes you're a require rockstar! Which is something I do not want to be!

 

Thanks!

Dan

Outcomes