mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(data-table): allow custom inputName
for radio/checkbox
This commit is contained in:
parent
b4ae19e8e7
commit
8da0db387e
6 changed files with 85 additions and 30 deletions
9
types/DataTable/DataTable.svelte.d.ts
vendored
9
types/DataTable/DataTable.svelte.d.ts
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue