-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature Request: DataTable hide expander when there are no children rows #1762
Comments
Hi, Added body property support to Column with expander. Exp;
With this feature, you can provide custom expander items using columnProps.expander
Best Regards, |
@mertsincan I tried your sample above and every time I use `columnProps.expander.element' typeScript complains: Can you tell me what I'm doing wrong? |
The problem is with colums.td.d that has wrong type definition for ColumnProps.expander: boolean. Workaround: const expander = columnProps.expander as unknown as any; |
@Kaizer69 why not submit a PR with your fix? |
I'm not sure about fix it in the correct way of primereact developers (choice the correct type), so it can be a useless PR :) |
Hi, Best Regards, |
I'm submitting a ...
Expected behavior
I would like to ability to hide the expander of a row that has no children
The text was updated successfully, but these errors were encountered: