Skip to content

Feat: ability to handle clicks on rows and define a default column to sort by#21

Open
ronnybremer wants to merge 8 commits intoopensass:mainfrom
ronnybremer:main
Open

Feat: ability to handle clicks on rows and define a default column to sort by#21
ronnybremer wants to merge 8 commits intoopensass:mainfrom
ronnybremer:main

Conversation

@ronnybremer
Copy link
Copy Markdown
Contributor

Disclaimer: unfortunately, this is for Dioxus only for the moment

This PR implements an optional table wide callback, which is called when the user clicks on a row of the table.

Also, an optional default sort column can be specified, having the data sorted by default.
The sort behavior was changed slightly, first click sorts ASC, second DESC and third reverts to no sorting.

It was rebased on the current code base.

Should I provide some example code on how to use that?

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.

1 participant