Autodesk / react-base-table

A react table component to display large datasets with high performance and flexibility
https://autodesk.github.io/react-base-table/
MIT License
1.5k stars 164 forks source link

Allow setting direction (RTL or LTR) #98

Open hannaofsweden opened 5 years ago

hannaofsweden commented 5 years ago

React-window grids have a 'direction' prop, which allow them to be used in a left-to-right context.

However, react-base-table doesn't expose this prop and always sets the direction to 'ltr on the grid'.

Would it be possible to expose the direction property in react-base-table?

nihgwu commented 5 years ago

thanks for raise up this question, but I think that's not a simple thing just export the direction property for fixed table with frozen columns, probably will be supported in the next major version

kaleem-elahi commented 3 years ago

Hi @nihgwu

When can we expect this feature?

kaleem-elahi commented 3 years ago

How I handled it through SCSS:

.rtl-apply {
    .#{$table-prefix}__header-row {
        direction: rtl;
    }
    .#{$table-prefix}__row {
        direction: rtl;
    }
}