markmalek / Fixed-Header-Table

jQuery plugin for tables with fixed headers
www.fixedheadertable.com
MIT License
930 stars 541 forks source link

Adding rtl for fixed header table #165

Open alisesan opened 7 years ago

alisesan commented 7 years ago

When UI is right-to-left, the library has to fix header of the table in the opposite side. The first column has to be in right side and also the scroll has to change.

For that, I add a setting to know if the direction of the body is 'rtl'. Then you add 'data-rtl' with 'fht-fixed-column' class.

With the settings you can set a correct functionality of scroll and using 'data-rtl' you can apply the correct css style.