Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting direction (RTL or LTR) #98

Open
hannaofsweden opened this issue Sep 26, 2019 · 3 comments
Open

Allow setting direction (RTL or LTR) #98

hannaofsweden opened this issue Sep 26, 2019 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@hannaofsweden
Copy link

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 nihgwu added enhancement New feature or request help wanted Extra attention is needed labels Sep 26, 2019
@nihgwu
Copy link
Contributor

nihgwu commented Sep 26, 2019

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
Copy link

kaleem-elahi commented Jun 12, 2021

Hi @nihgwu

When can we expect this feature?

@kaleem-elahi
Copy link

kaleem-elahi commented Jun 29, 2021

How I handled it through SCSS:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants