Skip to content
New issue

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

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

Already on GitHub? # to your account

Dynamic column width depends on level #407

Open
Edymov opened this issue Feb 27, 2023 · 1 comment
Open

Dynamic column width depends on level #407

Edymov opened this issue Feb 27, 2023 · 1 comment

Comments

@Edymov
Copy link
Contributor

Edymov commented Feb 27, 2023

Hello!
Is it a way to create a custom column with dynamic width. I need it to render correct tree toggle. Tree has up to 8 levels deep

@simonguo
Copy link
Member

simonguo commented Apr 4, 2023

Hi @Edymov
You can get the depth of the tree in rowData through the onExpandChange callback, and then dynamically set the column width.

onExpandChange: (expanded: boolean, rowData: Row) => void;

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants