Wednesday, November 2, 2011

jQuery.Colorize 1.6.1

I am the author of the jQuery.Colorize plugin. I lost access to the jQuery site that's why the new version is being published here.

The new version is a fork of version 1.6.0. It features a new option - startRow. For example, if your table has a header of 2 rows, and you want the header to be exempt from colorize effects, use the startRow option with the value of 2. (The row index starts from 0).

The full list of parameters is shown below:
altColor : alternate row background color, 'none' can be used for no alternate background color
* bgColor : background color (The default background color is white).
* hoverColor : background color when you hover a mouse over a row
* hoverClass: style class for mouseover; takes precedence over hoverColor property; may slow down performance in IE
* hiliteColor : row highlight background color, 'none' can be used for no highlight
* hiliteClass: style class for highlighting a row or a column; takes precedence over the hiliteColor setting
* oneClick : true/false(default) - if true, clicking a new row reverts the current highlighted row to the original background color
* columns : true/false/'hover', 'rowHover' - The default is false. if true, it highlights columns instead of rows. If the value is 'hover',  a column is highlighted on mouseover, but does not respond to clicking. Instead, a row is highlighted when clicked.  If the value is 'rowHover', a row is highlighted on mouseover, and a column is highlighted on click.
* banColumns : [] - columns not to be highlighted or hovered over; supply an array of column indices, starting from 0;
* 'last' value can be used to ban the last column
* banDataClick: true/false(default); if true, you can only click on the header rows
* ignoreHeaders:true(default)/false; if true, table headers are not colorized
* nested : true/false(default); use if you have nested tables in your main table
* rowStart; the first row index to apply mouseover and click effects; the default is 0.



The link to the new version is available here.

A plugin demo can be found here.

No comments:

Post a Comment