Skip to content
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

Detect heading click and provide clicked cell in table widget #5

Merged
merged 13 commits into from
Feb 1, 2024

Conversation

memorycode
Copy link
Contributor

Adds :selectedHeading(), which returns the table heading that was clicked this frame. It also changes :selected() to return the index of the cell that was clicked, instead of just the row, as a second return value.

IMO these methods are both misnomers because they don't do any selection on their own, but renaming :selected() would be a breaking change (and this PR aims to avoid that.)

A new table story has been added to show how these might now be used.

jackTabsCode
jackTabsCode previously approved these changes Jan 14, 2024
@LastTalon LastTalon merged commit b3b54bc into matter-ecs:main Feb 1, 2024
5 checks passed
@memorycode memorycode deleted the click-headings branch February 1, 2024 01:17
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

Successfully merging this pull request may close these issues.

3 participants