How to useProtip: Install using Bower
Add CSS file to the
|
Name | type | default | description |
---|---|---|---|
pattern | string | 'priority-columns' |
What responsive table pattern to use. For now, Tips: When initalizing via JavaScript, add |
stickyTableHeader | boolean | true | Makes the table header persistent. |
fixedNavbar | string | '.navbar-fixed-top' |
Is there a fixed navbar? The sticky table header needs to know about it! The option is the selector used to find the navbar. Don't worry about the default value if you don't have a fixed navbar. Example: |
addDisplayAllBtn | boolean | true | Add 'Display all' button to the toolbar above the table. |
addFocusBtn | boolean | true | Add 'Focus' toggle button to the toolbar above the table. |
focusBtnIcon | string | 'glyphicon glyphicon-screenshot' | Icon for the focus btn specified with classes. |
data-priority
attributes for each <th>
Attribute | Description/Breakpoint |
---|---|
data-priority="" |
Always visible and not hideable from dropdown |
data-priority="1" |
Always visible (but hidable from dropdown) |
data-priority="2" |
Visible when (min-width: 480px) |
data-priority="3" |
(min-width: 640px) |
data-priority="4" |
(min-width: 800px) |
data-priority="5" |
(min-width: 960px) |
data-priority="6" |
(min-width: 1120px) |
For better IE support, you need to have IE classes. Replace <html>
with:
<!--[if lt IE 7 ]> <html lang="en" class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js lt-ie10"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
The .no-js
class is used to determine if the browser does not have JavaScript support or if JavaScript is disabled. The class is not used right now, but you should consider adding it anyway in case a future release has a patch that depends on it.
|
来自: 飞鹰飞龙飞天 > 《Bootstrap》