mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-12-05 05:04:20 +00:00
Merge branch 'master' into gh-pages
This commit is contained in:
commit
c116693fc0
@ -479,6 +479,26 @@ $(function() {
|
|||||||
</ul>
|
</ul>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h3><a href="#">RTL Support</a></h3>
|
||||||
|
<div>
|
||||||
|
Two things are required to get the fixed column properly aligned on the right side:
|
||||||
|
<ol>
|
||||||
|
<li>
|
||||||
|
A class of <code>ts-scroller-rtl</code> must be added to the table
|
||||||
|
<pre class="prettyprint lang-html"><table class="ts-scroller-rtl">...</table></pre>
|
||||||
|
the reason for the weird naming <code>ts</code> instead of <code>tablesorter</code> is because with a class name of <code>tablesorter-scroller-rtl</code>, the code will think you're trying to add a theme named <code>scroller-rtl</code>.
|
||||||
|
<p>If you want to change this class name, use the following code before the document ready function:</p>
|
||||||
|
<pre class="prettyprint lang-js">$.tablesorter.css.scrollerRtl = "ts-scroller-rtl";</pre>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Whatever element is wrapping the table needs to be set with the css <code>direction:rtl</code>. So if your entire page (<code>body</code> is set, that will work just fine. If you only want the table to be set as rtl, then set this css on the scroller's wrapper:
|
||||||
|
<pre class="prettyprint lang-css locked">.tablesorter-scroller { direction: rtl; }</pre>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
Here is a <a href="https://jsfiddle.net/Mottie/uL8ugxw4/">jsFiddle demo</a>.
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1>CSS</h1>
|
<h1>CSS</h1>
|
||||||
|
Loading…
Reference in New Issue
Block a user