Pentaho

 View Only

 How to use AlpacaJS with RequireJS in Ctools?

  • Pentaho
  • Pentaho
Dan Keeley's profile image
Dan Keeley posted 03-14-2019 14:37

Hi, best explained with an image:

alpaca

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


#Pentaho
Dan Keeley's profile image
Dan Keeley

hang on, i may just have a solution, let me write it up..

Caroline Jacquet's profile image
Caroline Jacquet

Dan KeeleyWere you able to find a solution to this?

Dan Keeley's profile image
Dan Keeley

yes, i'm going to write it up / update my blog page. give me a few days.

Dan Keeley's profile image
Dan Keeley