vui-table
This component contains Sass mixins and CSS that you can use to style tables for display of tabular data.
Tables are styled like this:
For element layout concerns see vui-grid-system.
For further information on this component and other VUI components, see the docs at ui.valence.d2l.com.
Installation
vui-table
can be installed from Bower:
bower install vui-table
Or alternatively from NPM:
npm install vui-table
Depending on which installation method you choose, use that path when doing the SASS import:
;// or... ;
Usage
To style tables, first include its SCSS
file. Then, apply the mixin using the vui-table
selector on the table element.
HTML:
Header column 1 Header column 2 row 1 column 1 row 1 column 2 row 2 column 1 row 2 column 2
SCSS:
; table
Row Styles
To style an individual table row as active, selected, or both, add the appropriate mixin to <tr>
.
HTML:
active selected active and selected
SCSS:
.selected .active .active-selected
Header Icons
To include ascending or descending sort icons, include the appropriate mixin.
HTML:
Ascending Descending 123 321 456 654
SCSS:
.ascending .descending
Coding styles
See the VUI Best Practices & Style Guide for information on VUI naming conventions, plus information about the EditorConfig rules used in this repo.