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

"hover-color" would be nice #21

Open
m48u opened this issue Jul 15, 2013 · 3 comments
Open

"hover-color" would be nice #21

m48u opened this issue Jul 15, 2013 · 3 comments

Comments

@m48u
Copy link

m48u commented Jul 15, 2013

Hi there,
and congratulations! This is a really great project!
A nice new feature for this would be "on-hover". You already implemented "selected-color", "even-color" and "odd-color". It would be very nice to have a "hovered-color" in order to indicate the actual hovered item.

Thanks in advance!
m48u

@m48u
Copy link
Author

m48u commented Jul 15, 2013

Found a solution for this...

enter some code in angular-table (somewhere in the area of line number 320)

ngClass = " ng-class='{hovered: hoveredItemNr == $index}' ";
ngMouse = " ng-mouseenter='hoveredItemNr = $index' ng-mouseleave='hoveredItemNr = null' ";

and then add some CSS to this CSS class

.table tbody tr.hovered>td {
    background-color: lightblue;
    color: black;
}

Maybe you find a way to make it selectable like the other colors

@davidjnelson
Copy link
Owner

Thank you! I will add this as a new feature in the future.

@m48u
Copy link
Author

m48u commented Jul 16, 2013

No, 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