Friday 9 June 2017

How to integrate external library (slick) and utilize it into MarkoJS?

I am beginner to the MarkoJS technology. I am looking to create a carousel (slider with multiple items) component through MarkoJS and find some difficulty. The issue i face to load external libraries (like Jquery) into MarkoJS. I am not sure is there any way to load external libraries and use them through marko.

The library i was looking to integrate with MarkoJS is jquery and slick (carousel). It would be preferable if any one suggest me about loading external JS/Jquery code into MarkoJS. So, that i can easily manipulate the DOM.

The thing, i was looking for is DOM manipulation through MarkoJS and how to use the selectors in MarkoJS ?

Some possibilities already been tried:

  • Though, i am not using any library here. I am able to build a carousel slider through CSS which i don't want to.
  • Second, have tried to built a logic to implement the slider through the Marko itself. But, again find a difficulty for DOM selectors.


via Amey Desai

No comments:

Post a Comment