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

Feature Request: Alternating row colors #163

Closed
Laplandia opened this issue Sep 27, 2012 · 7 comments
Closed

Feature Request: Alternating row colors #163

Laplandia opened this issue Sep 27, 2012 · 7 comments

Comments

@Laplandia
Copy link

Would be great for readability.

@deeta
Copy link

deeta commented Sep 27, 2012

http://jsfiddle.net/ctSdq/31/

This is pretty straightforward with legend. Are you looking for something more?

@Laplandia
Copy link
Author

Great, thanks. I'll see if it works properly when rows are added/deleted.

@warpech
Copy link
Member

warpech commented Sep 27, 2012

Great response deeta :) I think that solves it. I may use it in future examples

@warpech warpech closed this as completed Sep 27, 2012
@diegomenezes
Copy link

This works only if you don´t add a line using the context menu!
But it´s a good solution if you don´t.

@Laplandia
Copy link
Author

Would not work with external filters as well.

@ltoews
Copy link

ltoews commented Jun 28, 2014

This is exactly what I need, but the fiddle example is not working. There is nothing in the results box.

@atul-bhosale
Copy link

Try this css,

table.htCore tbody tr:nth-child(even) td {
background-color: #f2f2f2;
}

/* optional, if you want other than WHITE color */
table.htCore tbody tr:nth-child(odd) td {
background-color: #e6e6e6;
}

jansiegel added a commit that referenced this issue Dec 11, 2018
- beforeHideRows
- afterHideRows
- beforeUnhideRows
- afterUnhideRows
- beforeHideColumns
- afterHideColumns
- beforeUnhideColumns
- afterUnhideColumns
 #163
jansiegel added a commit that referenced this issue Dec 11, 2018
jansiegel added a commit that referenced this issue Dec 11, 2018
…s/columns, if the validation was unsuccessful

- Add an additional parameter to the 'after' hooks, telling if the validation was successful
 #163
jansiegel added a commit that referenced this issue Dec 11, 2018
jansiegel added a commit that referenced this issue Dec 11, 2018
* Add the following hooks:
- beforeHideRows
- afterHideRows
- beforeUnhideRows
- afterUnhideRows
- beforeHideColumns
- afterHideColumns
- beforeUnhideColumns
- afterUnhideColumns
 #163

* Add tests to make sure the `after` hiding hooks don’t fire, if the `before` hooks returned `false`. #163

* Extend the functionality of the hooks in hiddenRows/hiddenColumns. #163

* - Make the plugin still run the 'after' hooks for hiding/unhiding rows/columns, if the validation was unsuccessful
- Add an additional parameter to the 'after' hooks, telling if the validation was successful
 #163

* Rename the validation function. #163

* Change the use of 'find' in favor of 'every'. #163
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

6 participants