LarakBell
LarakBell

Reputation: 618

rtl direction doesn't work in jquery simplebar

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

Answers (1)

s.kuznetsov
s.kuznetsov

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

Related Questions