Reputation: 618
I need to add scroll bar in left. So, add direction:'rtl'
option to jquery simplebar scrollbar plugin:
var myElement = document.getElementById("simple-bar");
new SimpleBar(myElement, {
autoHide: true,
direction: 'rtl'
});
But in action rtl
option not work for me. how do can I show scrollbar in left?!
demo here
Upvotes: 1
Views: 484
Reputation: 15223
You need to add parameter data-simplebar-direction='rtl'
to the tag ( id="simple-bar"
), and it should look like this:
<div id="simple-bar" data-simplebar-direction='rtl'>
...
</div>
Upvotes: 1