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

Not able to hide expander icon from specific rows #2026

Open
Achuthan8299 opened this issue Nov 26, 2023 · 0 comments
Open

Not able to hide expander icon from specific rows #2026

Achuthan8299 opened this issue Nov 26, 2023 · 0 comments

Comments

@Achuthan8299
Copy link

I am using react datatable version 7.5..The issue is that I am not able to hide the expander button from my rows..here is my code
const data = [
{ id: 1, name: 'John Doe', email: 'johndoe@example.com', showExpander: true },
{ id: 2, name: 'Jane Doe', email: 'janedoe@example.com', showExpander: false },
{ id: 3, name: 'Peter Jones', email: 'peterjones@example.com', showExpander: true },
];

const ExpandableTable = () => {
return (


Additional Details


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra facilisis.



);
};

const App = () => {
const expandableRowsHideExpander = (row) => {
return !row.showExpander;
};

return (

);
};

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

No branches or pull requests

1 participant