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(data-table): allow custom inputName for radio/checkbox #2087

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Jan 20, 2025

Closes #2085

Adds an inputName prop to DataTable to allow customizing the name value set on the input for selectable rows (checkbox or radio button).

name should be the same on all rows in a DataTable but unique across multiple DataTable instances. The row input IDs remain unique to avoid clashing (see #2081).

@metonym
Copy link
Collaborator Author

metonym commented Jan 20, 2025

CC @theetrain does this address your use case?

@metonym metonym force-pushed the datatable-name-attribute branch from 78108f3 to f6b778f Compare January 20, 2025 01:39
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

Successfully merging this pull request may close these issues.

DataTable supports name prop for selectable variant
1 participant