File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 381
381
< InlineCheckbox
382
382
bind: ref= {refSelectAll}
383
383
aria- label= " Select all rows"
384
+ name= " {id}-select-all"
385
+ value= " all"
384
386
checked= {selectAll}
385
387
{indeterminate}
386
388
on: change= {(e ) => {
512
514
class: bx-- table- column- radio= {radio}
513
515
>
514
516
{#if ! nonSelectableRowIds .includes (row .id )}
517
+ {@const inputId = ` ${ id} -${ row .id } ` }
518
+ {@const inputName = ` ${ id} -name` }
515
519
{#if radio}
516
520
< RadioButton
517
- name= " {id}-{row.id}"
521
+ id= {inputId}
522
+ name= {inputName}
518
523
checked= {selectedRowIds .includes (row .id )}
519
524
on: change= {() => {
520
525
selectedRowIds = [row .id ];
523
528
/ >
524
529
{: else }
525
530
< InlineCheckbox
526
- name= " {id}-{row.id}"
531
+ id= {inputId}
532
+ name= {inputName}
527
533
checked= {selectedRowIds .includes (row .id )}
528
534
on: change= {() => {
529
535
if (selectedRowIds .includes (row .id )) {
Original file line number Diff line number Diff line change 14
14
15
15
<DataTable radio {headers } {rows } />
16
16
<DataTable radio {headers } {rows } />
17
+
18
+ <DataTable batchSelection selectable {headers } {rows } />
19
+ <DataTable batchSelection selectable {headers } {rows } />
You can’t perform that action at this time.
0 commit comments