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

This commit is contained in:
Eric Liu 2025-01-19 17:02:43 -08:00
commit 8da0db387e
6 changed files with 85 additions and 30 deletions

View file

@ -12,8 +12,20 @@
];
</script>
<DataTable radio {headers} {rows} />
<DataTable radio {headers} {rows} />
<DataTable inputName="radio-select" radio {headers} {rows} />
<DataTable inputName="radio-select" radio {headers} {rows} />
<DataTable batchSelection selectable {headers} {rows} />
<DataTable batchSelection selectable {headers} {rows} />
<DataTable
inputName="checkbox-select"
batchSelection
selectable
{headers}
{rows}
/>
<DataTable
inputName="checkbox-select"
batchSelection
selectable
{headers}
{rows}
/>