feat(data-table): allow custom inputName for radio/checkbox (#2087)

Closes #2085
This commit is contained in:
Eric Liu 2025-03-09 13:47:08 -07:00 committed by GitHub
commit 7481b9a995
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 85 additions and 30 deletions

View file

@ -77,6 +77,15 @@ type $Props<Row> = {
*/
description?: string;
/**
* Specify a name attribute for the input elements
* in a selectable data table (radio or checkbox).
* When the table is inside a form, this name will
* be included in the form data on submit.
* @default "ccs-" + Math.random().toString(36)
*/
inputName?: string;
/**
* Set to `true` to use zebra styles
* @default false