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.
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
- To style special relationship in table
- To provide a column hovering effect to the user, when appropriate
Do not use when
- For styling table that are not conform at the 12 technique for tables
Working example
English:
French:
How to implement
- Make your table conform at the 12 techniques for tables
- Add a class="wb-zebra" element to the table.
<table class="wb-zebra">
- (Optional) Activate the indicator that your tables contains data summaries
<table class="wb-zebra hassum">
- (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
- Core: Zebra plugin
- Dependency: Complex Table Parser
- Date modified: