Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

memorycode
Copy link

@memorycode memorycode commented Dec 26, 2023

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.

@oldmannt
Copy link

Thank you for creating this PR.
This is exactly what I need. It looks like it's merged but not sure why I can't find those codes in the main branch.

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

Successfully merging this pull request may close these issues.

2 participants