iced_table icon indicating copy to clipboard operation
iced_table copied to clipboard

is there a way to select a row

Open pm100 opened this issue 1 year ago • 5 comments

Select with mouse (and kb) and a) see it highlighted b) get notified of the selection change c) be able to ask about the selected row, d) be able to change it programmatically.

I dont see any obvious code for it

pm100 avatar Feb 13 '24 02:02 pm100

BTW - if the answer is 'no' I am happy to hack away and see if I can do it

pm100 avatar Feb 13 '24 04:02 pm100

The solution I made, is just adding a new column that contains a button, so one button per row.

The button contains a uuid (in my case. Could easily be a row number), and that button sets some internal value to that uuid, then another part of the gui does somehting with it. Sort of a hack job, but with iced still being 'experimental', it'll do.

nednoodlehead avatar Mar 20 '24 20:03 nednoodlehead