svelte-headless-table icon indicating copy to clipboard operation
svelte-headless-table copied to clipboard

How to change sub rows rowDataId ?

Open vlausargs opened this issue 9 months ago • 2 comments

from this example

The id of a sub-row is in the format {parentId}>{id}.

but the problem is when i set rowDataId in

table.createViewModel(columns, {
			rowDataId: (row) => row.id
		});

it return index instead of the data.id image

vlausargs avatar May 04 '24 06:05 vlausargs

I followed the #110 instructions, but I obtain the same issue with subrows.

philmas avatar May 16 '24 19:05 philmas

I followed the #110 instructions, but I obtain the same issue with subrows.

thats exactly my point. I screenshot the selectedDataIds for reference

vlausargs avatar May 26 '24 16:05 vlausargs