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

Add ability to set which row should be highlighted #42

Closed
gairadzi opened this issue Mar 7, 2022 · 2 comments
Closed

Add ability to set which row should be highlighted #42

gairadzi opened this issue Mar 7, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@gairadzi
Copy link
Contributor

gairadzi commented Mar 7, 2022

I have a use case where I let the user reorder the rows in the table and would like to change the highlight to stay with the reordered row

@Evertras Evertras added the enhancement New feature or request label Mar 7, 2022
Evertras pushed a commit that referenced this issue Mar 8, 2022
* Add function to set the highlighted row

Allow setting which row will be highlighted by
passing its index

* Changes based on PR feedback

Move function to options.go file and match to convention by not
using a pointer receiver (function returns the model instead)

* Fix linting issue and add test for new function
@Evertras
Copy link
Owner

Evertras commented Mar 8, 2022

Released v0.8.1 with this feature, feel free to close if everything looks good for you! Thanks for the PR!

@gairadzi
Copy link
Contributor Author

gairadzi commented Mar 8, 2022

Works great, thanks a lot for the quick turnaround!

@gairadzi gairadzi closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants