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

feat: [Table Component] accept functions for disabling row click and selection #664

Open
kdabir opened this issue May 18, 2022 · 2 comments
Assignees
Labels
feature request New feature request

Comments

@kdabir
Copy link
Member

kdabir commented May 18, 2022

Description

Currently we need to provide a key which should map to a field that controls disabling the row click and selection. we should also support functions that could evaluate to true | false which can control the same behavior

image

@kdabir kdabir added the feature request New feature request label May 18, 2022
@PulkitBanta
Copy link
Collaborator

@kdabir can you provide more context as why this is required and what is the use case that is not handled by adding the key?

@kdabir
Copy link
Member Author

kdabir commented May 19, 2022

There are times when there is a logic (function) that can tell if this row needs to be disabled. For example, disable the row selection if age < 18. That cannot be implemented using a key.

@abhishekashyap abhishekashyap self-assigned this Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

3 participants