Utility functions
initZebraRowsThis utility function resets zebra row count. The next call to
setZebraRowsHeadmakes the line transparent. This action must be called before the table where the zebra rows are to be displayed.setZebraRowsHeadThis utility function sets the row to a specific color and ensures that the next call to the same function yields a different color. This function must be used on a repeated row.
setZebraRowsThis utility function sets the current row with the same color as the previous
setZebraRowsHeadrow.initZebraRowsHeadThis utility function changes the color for the next call to
setZebraRowsHeadorsetZebraRows. This function works likeinitZebraRows, but does not need be called on a table row.
Example:
For a simple zebra row table, the user can add initZebraRows as a script somewhere before the table, and then add the script setZebraRowsHead to a row under the repeated row.