Skip to content

is there a way to select a row #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pm100 opened this issue Feb 13, 2024 · 3 comments
Open

is there a way to select a row #6

pm100 opened this issue Feb 13, 2024 · 3 comments

Comments

@pm100
Copy link

pm100 commented Feb 13, 2024

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
Copy link
Author

pm100 commented Feb 13, 2024

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

@nednoodlehead
Copy link

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.

@Creative-Difficulty
Copy link

@tarkah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants