Hello,
I would like to use mouse drag and a custom navigation container to make a product gallery, similar to the example at https://github.com/ganlanyuan/tiny-slider/issues/277.
However, I am unable to find these attribute parameters in the Metronic documentation.
example i need in js :
var slider = tns({
container: ".slider",
navContainer: ".thumb-slider",
items: 1,
loop: true,
navAsThumbnails: true,
mouseDrag: true,
center: true,
controls : false
});
Did you manage a workaround for this? Thank you.
Hi,
Our initSlider
wrapper defined in src/js/components/app.js
passes all HTML attributes to the plugin options as stated in the official docs.
You should initialize your custom code on document ready event after all js scripts includes so the slider and other plugins will be available:
// On document ready
KTUtil.onDOMContentLoaded(function () {
// your code goes here
});