Data Grid Pattern
The styling is in "scss/custom-bootstrap/_data-grid.scss"
The javascript is in "js/custom-bootstrap/data-grid.js"
Basic Usage
To turn a table to Data-grid, just attach data-gid
class to a bootstrap table:
<table class="table data-grid draggable">
Drag & drop columns
If you want to allow drag-n-drop of columns, add draggable
class to th
of the column you want to allow drag:
<th class="draggable">Row heading</th>
Table controls
Data grid can be used with controls, you can include default controls by typing:
{% include admin/data-grid-controls.html %}
If you want to customize the controls, copy code from _inlcudes/admin/data-grid-controls.html
file and put it on top of your Data-grid.
Collapse/Expand rows
First, add a toggle button:
<a href="#" class="btn btn-default collapsed" data-toggle="collapse" data-target="#row-expandable"><i class="icon-caret-down"></i></a>
And then add the hidden rows to your table:
<tr id="row-expandable" class="row-collapse collapse">
<td></td>
</tr>
Pattern demo
Assigned Terms
12 items found
|
Indexer |
Description |
Mode |
Status |
Updated |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Row that is triggers the expand |
Indexed product/categories association |
Update on Save |
Reindex required |
|
|
Module name a |
|
|
|
|
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Row that is triggers multiple rows to expand |
Indexed product/categories association |
Update on Save |
Reindex required |
|
|
Row that is collapsed 1 |
|
|
|
|
|
Row that is collapsed 2 |
|
|
|
|
|
Row that is collapsed 3 |
|
|
|
|
|
Product Price |
Index product prices |
Update on Save |
Reindex required |
Dec 9, 2014 11:50:02 AM |
|
Product EAV |
Index product EAV |
Update on Save |
Reindex required |
Dec 9, 2014 11:50:02 AM |
|
Stock |
Index stock |
Update on Save |
Reindex required |
Dec 9, 2014 11:50:01 AM |
|
Catalog Rule Product |
Indexed rule/product association |
Update on Save |
Reindex required |
Never |
|
Catalog Product Rule |
Indexed product/rule association |
Update on Save |
Reindex required |
Dec 9, 2014 11:50:02 AM |
|
Catalog Search |
Rebuild Catalog product fulltext search index |
Update on Save |
Reindex required |
Dec 9, 2014 11:50:03 AM |
|
Product/Target Rule |
Indexed product/rule association |
Update on Save |
Reindex required |
Dec 9, 2014 11:50:02 AM |
|
Target Rule/Product |
Indexed rule/product association |
Update on Save |
Reindex required |
Dec 9, 2014 11:56:10 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |
|
Category Products |
Indexed category/products association |
Update on Save |
Reindex required |
Dec 9, 2014 10:50:39 AM |