Zebra Stripping

Looking for WET v3.1?

WET v4.0 is now the current version. There is a new location for the current page in WET v3.1.

Questions or comments?

The striped rows functionality is provided from Twitter Bootstrap CSS

Purpose

Style special relationship between cell, vector (row/col) and group (tbody/colgroup). It also simulate a column hovering effect for table.

Use when

Do not use when

Working example

English:

French:

How to implement

  1. Make your table conform at the 12 techniques for tables
  2. Add a class="wb-zebra" element to the table.
    <table class="wb-zebra">
  3. (Optional) Activate the indicator that your tables contains data summaries
    <table class="wb-zebra hassum">
  4. (Optional) Activate the column hovering effect
    <table class="wb-zebra wb-zebra-col-hover">

Configuration options

There is no customizable configuration options.

Events

Document the public events that can be used by implementers or developers.

Event Trigger What it does
wb-init.wb-zebra When the zebra plugin is initialized Load table parser dependency and initiate the complex table parsing.
pasiveparse.wb-tableparser.wb When the zebra plugin initiate the complex table parsing. It will parse the data table and attach the information to a data attribute named "tblparser" on every elements inside and on to the table elements.
parsecomplete.wb-tableparser.wb When the table parser has completed his parsing. It's means that the "tblparser" data attribute is now ready to be use.

Source code

Date modified: