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

Disable selected cell title highlighting #11

Closed
dwightwatson opened this issue Oct 2, 2015 · 2 comments
Closed

Disable selected cell title highlighting #11

dwightwatson opened this issue Oct 2, 2015 · 2 comments

Comments

@dwightwatson
Copy link

Is it possible to disable the highlighting of the title of the currently selected cell? I don't see it in the documentation, and a quick browse through the code seems to indicate you'd need to manually set the highlight colour to be the same as the default text colour. It would be great if there was a way you could disable it completely.

@mtnbarreto
Copy link
Member

@dwightwatson
The easiest way to do that is making use of default row initializers.

The following code disable NameRow highlighting.

NameRow.defaultRowInitializer = { row in
            row.onCellHighlight { _, _  in }
            row.onCellUnHighlight { _, _ in }
        }

You should do the same to each row type you want to disable.
Cheers

@dwightwatson
Copy link
Author

Awesome, nice solution. Thank you!

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

No branches or pull requests

2 participants