patternfly-sass 3.13.0 → 3.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/patternfly-functions.js +1137 -0
  3. data/assets/javascripts/patternfly-functions.min.js +1 -0
  4. data/assets/javascripts/patternfly-settings.js +506 -0
  5. data/assets/javascripts/patternfly-settings.min.js +1 -0
  6. data/assets/javascripts/patternfly.dataTables.pfEmpty.js +244 -0
  7. data/assets/javascripts/patternfly.dataTables.pfEmpty.min.js +1 -0
  8. data/assets/javascripts/patternfly.dataTables.pfFilter.js +421 -0
  9. data/assets/javascripts/patternfly.dataTables.pfFilter.min.js +1 -0
  10. data/assets/javascripts/patternfly.dataTables.pfResize.js +214 -0
  11. data/assets/javascripts/patternfly.dataTables.pfResize.min.js +1 -0
  12. data/assets/javascripts/patternfly.dataTables.pfSelect.js +281 -0
  13. data/assets/javascripts/patternfly.dataTables.pfSelect.min.js +1 -0
  14. data/assets/javascripts/patternfly.js +692 -652
  15. data/assets/javascripts/patternfly.min.js +2 -2
  16. data/assets/stylesheets/_patternfly.scss +1 -0
  17. data/assets/stylesheets/patternfly/_datatables.scss +17 -49
  18. data/assets/stylesheets/patternfly/_table-view.scss +170 -0
  19. data/bower.json +1 -1
  20. data/lib/patternfly-sass/version.rb +2 -2
  21. data/package.json +70 -0
  22. data/spec/html/about-modal.html +1 -0
  23. data/spec/html/accordions.html +1 -0
  24. data/spec/html/alerts.html +1 -0
  25. data/spec/html/area-charts.html +1 -0
  26. data/spec/html/badges.html +1 -0
  27. data/spec/html/bar-charts.html +1 -0
  28. data/spec/html/basic.html +368 -418
  29. data/spec/html/blank-slate.html +2 -1
  30. data/spec/html/bootstrap-combobox.html +1 -0
  31. data/spec/html/bootstrap-datepicker.html +1 -0
  32. data/spec/html/bootstrap-select.html +1 -0
  33. data/spec/html/bootstrap-switch.html +1 -0
  34. data/spec/html/bootstrap-touchspin.html +1 -0
  35. data/spec/html/bootstrap-treeview-2.html +1 -0
  36. data/spec/html/bootstrap-treeview.html +1 -0
  37. data/spec/html/breadcrumbs.html +1 -0
  38. data/spec/html/buttons.html +1 -0
  39. data/spec/html/card-view-card-variations.html +1 -0
  40. data/spec/html/card-view-multi-select.html +1 -0
  41. data/spec/html/card-view-single-select.html +1 -0
  42. data/spec/html/cards.html +1 -0
  43. data/spec/html/code.html +1 -0
  44. data/spec/html/dashboard.html +1 -0
  45. data/spec/html/dist/css/patternfly-additions.css +143 -52
  46. data/spec/html/dist/css/patternfly-additions.css.map +1 -1
  47. data/spec/html/dist/css/patternfly-additions.min.css +1 -1
  48. data/spec/html/dist/css/patternfly-additions.min.css.map +1 -1
  49. data/spec/html/dist/css/patternfly.min.css +2 -2
  50. data/spec/html/dist/css/patternfly.min.css.map +1 -1
  51. data/spec/html/donut-charts.html +1 -0
  52. data/spec/html/dropdowns.html +1 -0
  53. data/spec/html/form.html +1 -0
  54. data/spec/html/forms.html +1 -0
  55. data/spec/html/horizontal-navigation.html +1 -0
  56. data/spec/html/icons.html +1 -0
  57. data/spec/html/index.html +10 -6
  58. data/spec/html/infotip.html +1 -0
  59. data/spec/html/labels.html +1 -0
  60. data/spec/html/line-charts.html +1 -0
  61. data/spec/html/list-group.html +1 -0
  62. data/spec/html/list-view-compound-expansion.html +1 -0
  63. data/spec/html/list-view-rows.html +1 -0
  64. data/spec/html/list-view-simple-expansion.html +1 -0
  65. data/spec/html/list-view.html +1 -0
  66. data/spec/html/login.html +1 -0
  67. data/spec/html/modals.html +1 -0
  68. data/spec/html/navbar.html +1 -0
  69. data/spec/html/notification-drawer-horizontal-nav.html +1 -0
  70. data/spec/html/notification-drawer-vertical-nav.html +1 -0
  71. data/spec/html/pagination.html +1 -0
  72. data/spec/html/panels.html +1 -0
  73. data/spec/html/pie-charts.html +1 -0
  74. data/spec/html/popovers.html +1 -0
  75. data/spec/html/progress-bars.html +1 -0
  76. data/spec/html/search.html +1 -0
  77. data/spec/html/spinner.html +1 -0
  78. data/spec/html/tab.html +373 -420
  79. data/spec/html/{datatables-columns.html → table-view-columns.html} +9 -7
  80. data/spec/html/table-view-navbar.html +532 -0
  81. data/spec/html/table-view.html +422 -0
  82. data/spec/html/tables.html +1 -0
  83. data/spec/html/tabs.html +1 -0
  84. data/spec/html/time-picker.html +1 -0
  85. data/spec/html/toast.html +1 -0
  86. data/spec/html/toolbar.html +1 -0
  87. data/spec/html/tooltip.html +1 -0
  88. data/spec/html/typography-2.html +1 -1
  89. data/spec/html/typography.html +1 -0
  90. data/spec/html/utilization-bar-charts.html +1 -0
  91. data/spec/html/vertical-navigation-primary-only.html +1 -0
  92. data/spec/html/vertical-navigation-with-badges.html +1 -0
  93. data/spec/html/vertical-navigation-with-secondary.html +1 -0
  94. data/spec/html/vertical-navigation-with-tertiary-no-icons.html +1 -0
  95. data/spec/html/vertical-navigation-with-tertiary-pins.html +1 -0
  96. data/spec/html/wizard.html +1 -0
  97. metadata +22 -6
  98. data/spec/html/datatables.html +0 -472
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -89,12 +90,6 @@
89
90
  <li>
90
91
  <a href="code.html">Code</a>
91
92
  </li>
92
- <li>
93
- <a href="datatables-columns.html">Data Tables with column visibility, reordering</a>
94
- </li>
95
- <li>
96
- <a href="datatables.html">Data Tables</a>
97
- </li>
98
93
  <li>
99
94
  <a href="dropdowns.html">Dropdowns</a>
100
95
  </li>
@@ -140,6 +135,15 @@
140
135
  <li>
141
136
  <a href="spinner.html">Spinner</a>
142
137
  </li>
138
+ <li>
139
+ <a href="table-view-columns.html">Table View [Deprecated example] with column visibility, reordering</a>
140
+ </li>
141
+ <li>
142
+ <a href="table-view-navbar.html">Table View with Navbar</a>
143
+ </li>
144
+ <li>
145
+ <a href="table-view.html">Table View</a>
146
+ </li>
143
147
  <li>
144
148
  <a href="tables.html">Tables</a>
145
149
  </li>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/js/bootstrap-select.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.0/jquery.matchHeight-min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.0/jquery.matchHeight-min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="../../dist/js/patternfly.min.js"></script>
@@ -25,9 +25,15 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
32
+ <script src="//cdn.datatables.net/select/1.2.0/js/dataTables.select.min.js"></script>
33
+ <script src="../../dist/js/patternfly.dataTables.pfEmpty.js"></script>
34
+ <script src="../../dist/js/patternfly.dataTables.pfFilter.js"></script>
35
+ <script src="../../dist/js/patternfly.dataTables.pfResize.js"></script>
36
+ <script src="../../dist/js/patternfly.dataTables.pfSelect.js"></script>
31
37
  <script src="../../dist/js/patternfly.min.js"></script>
32
38
  </head>
33
39
  <div class="toast-notifications-list-pf">
@@ -161,425 +167,375 @@
161
167
  <li><a href="#">Secondary Tab Four</a></li>
162
168
  <li><a href="#">Secondary Tab Five</a></li>
163
169
  </ul>
164
- <table class="datatable table table-striped table-bordered">
170
+ <!-- Toolbar -->
171
+ <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
172
+ <div class="col-sm-12">
173
+ <form class="toolbar-pf-actions">
174
+ <div class="form-group toolbar-pf-filter">
175
+ <label class="sr-only" for="filter">Rendering Engine</label>
176
+ <div class="input-group">
177
+ <div class="input-group-btn">
178
+ <button type="button" class="btn btn-default dropdown-toggle" id="filter" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Rendering Engine <span class="caret"></span></button>
179
+ <ul class="dropdown-menu">
180
+ <li><a href="#" id="filter1">Rendering Engine</a></li>
181
+ <li><a href="#" id="filter2">Browser</a></li>
182
+ <li><a href="#" id="filter3">Platform(s)</a></li>
183
+ <li><a href="#" id="filter4">Engine Version</a></li>
184
+ <li><a href="#" id="filter5">CSS Grade</a></li>
185
+ </ul>
186
+ </div>
187
+ <input type="text" class="form-control" placeholder="Filter By Rendering Engine..." autocomplete="off" id="filterInput">
188
+ </div>
189
+ </div>
190
+ <div class="form-group">
191
+ <button class="btn btn-default" type="button" id="deleteRows1">Delete Rows</button>
192
+ <button class="btn btn-default" type="button" id="restoreRows1" disabled>Restore Rows</button>
193
+ <div class="dropdown btn-group dropdown-kebab-pf">
194
+ <button class="btn btn-link dropdown-toggle" type="button" id="dropdownKebab" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
195
+ <span class="fa fa-ellipsis-v"></span>
196
+ </button>
197
+ <ul class="dropdown-menu " aria-labelledby="dropdownKebab">
198
+ <li><a href="#">Action</a></li>
199
+ <li><a href="#">Another action</a></li>
200
+ <li><a href="#">Something else here</a></li>
201
+ <li role="separator" class="divider"></li>
202
+ <li><a href="#">Separated link</a></li>
203
+ </ul>
204
+ </div>
205
+
206
+ </div>
207
+ <div class="toolbar-pf-action-right">
208
+ <div class="form-group toolbar-pf-find">
209
+ <button class="btn btn-link btn-find" type="button">
210
+ <span class="fa fa-search"></span>
211
+ </button>
212
+ <div class="find-pf-dropdown-container">
213
+ <input type="text" class="form-control" id="find" placeholder="Find By Keyword...">
214
+ <div class="find-pf-buttons">
215
+ <span class="find-pf-nums">1 of 3</span>
216
+ <button class="btn btn-link" type="button">
217
+ <span class="fa fa-angle-up"></span>
218
+ </button>
219
+ <button class="btn btn-link" type="button">
220
+ <span class="fa fa-angle-down"></span>
221
+ </button>
222
+ <button class="btn btn-link btn-find-close" type="button">
223
+ <span class="pficon pficon-close"></span>
224
+ </button>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </form>
230
+ <div class="row toolbar-pf-results">
231
+ <div class="col-sm-9">
232
+ <div class="hidden">
233
+ <h5>0 Results</h5>
234
+ <p>Active filters:</p>
235
+ <ul class="list-inline"></ul>
236
+ <p><a href="#">Clear All Filters</a></p>
237
+ </div>
238
+ </div>
239
+ <div class="col-sm-3 table-view-pf-select-results">
240
+ <strong>0</strong> of <strong>0</strong> selected
241
+ </div>
242
+ </div>
243
+ </div>
244
+ </div>
245
+
246
+ <!-- Table HTML -->
247
+ <table class="table table-striped table-bordered table-hover" id="table1">
165
248
  <thead>
166
249
  <tr>
167
- <th>Rendering engine</th>
250
+ <th><label class="sr-only" for="selectAll">Select all rows</label><input type="checkbox" id="selectAll" name="selectAll"></th>
251
+ <th>Rendering Engine</th>
168
252
  <th>Browser</th>
169
253
  <th>Platform(s)</th>
170
- <th>Engine version</th>
171
- <th>CSS grade</th>
254
+ <th>Engine Version</th>
255
+ <th>CSS Grade</th>
256
+ <th colspan="2">Actions</th>
172
257
  </tr>
173
258
  </thead>
174
- <tbody>
175
- <tr>
176
- <td>Trident</td>
177
- <td>
178
- Internet
179
- Explorer
180
- 4.0
181
- </td>
182
- <td>Win 95+</td>
183
- <td>4</td>
184
- <td>X</td>
185
- </tr>
186
- <tr>
187
- <td>Trident</td>
188
- <td>Internet
189
- Explorer 5.0</td>
190
- <td>Win 95+</td>
191
- <td>5</td>
192
- <td>C</td>
193
- </tr>
194
- <tr>
195
- <td>Trident</td>
196
- <td>Internet
197
- Explorer 5.5</td>
198
- <td>Win 95+</td>
199
- <td>5.5</td>
200
- <td>A</td>
201
- </tr>
202
- <tr>
203
- <td>Trident</td>
204
- <td>Internet
205
- Explorer 6</td>
206
- <td>Win 98+</td>
207
- <td>6</td>
208
- <td>A</td>
209
- </tr>
210
- <tr>
211
- <td>Trident</td>
212
- <td>Internet Explorer 7</td>
213
- <td>Win XP SP2+</td>
214
- <td>7</td>
215
- <td>A</td>
216
- </tr>
217
- <tr>
218
- <td>Trident</td>
219
- <td>AOL browser (AOL desktop)</td>
220
- <td>Win XP</td>
221
- <td>6</td>
222
- <td>A</td>
223
- </tr>
224
- <tr>
225
- <td>Gecko</td>
226
- <td>Firefox 1.0</td>
227
- <td>Win 98+ / OSX.2+</td>
228
- <td>1.7</td>
229
- <td>A</td>
230
- </tr>
231
- <tr>
232
- <td>Gecko</td>
233
- <td>Firefox 1.5</td>
234
- <td>Win 98+ / OSX.2+</td>
235
- <td>1.8</td>
236
- <td>A</td>
237
- </tr>
238
- <tr>
239
- <td>Gecko</td>
240
- <td>Firefox 2.0</td>
241
- <td>Win 98+ / OSX.2+</td>
242
- <td>1.8</td>
243
- <td>A</td>
244
- </tr>
245
- <tr>
246
- <td>Gecko</td>
247
- <td>Firefox 3.0</td>
248
- <td>Win 2k+ / OSX.3+</td>
249
- <td>1.9</td>
250
- <td>A</td>
251
- </tr>
252
- <tr>
253
- <td>Gecko</td>
254
- <td>Camino 1.0</td>
255
- <td>OSX.2+</td>
256
- <td>1.8</td>
257
- <td>A</td>
258
- </tr>
259
- <tr>
260
- <td>Gecko</td>
261
- <td>Camino 1.5</td>
262
- <td>OSX.3+</td>
263
- <td>1.8</td>
264
- <td>A</td>
265
- </tr>
266
- <tr>
267
- <td>Gecko</td>
268
- <td>Netscape 7.2</td>
269
- <td>Win 95+ / Mac OS 8.6-9.2</td>
270
- <td>1.7</td>
271
- <td>A</td>
272
- </tr>
273
- <tr>
274
- <td>Gecko</td>
275
- <td>Netscape Browser 8</td>
276
- <td>Win 98SE+</td>
277
- <td>1.7</td>
278
- <td>A</td>
279
- </tr>
280
- <tr>
281
- <td>Gecko</td>
282
- <td>Netscape Navigator 9</td>
283
- <td>Win 98+ / OSX.2+</td>
284
- <td>1.8</td>
285
- <td>A</td>
286
- </tr>
287
- <tr>
288
- <td>Gecko</td>
289
- <td>Mozilla 1.0</td>
290
- <td>Win 95+ / OSX.1+</td>
291
- <td>1</td>
292
- <td>A</td>
293
- </tr>
294
- <tr>
295
- <td>Gecko</td>
296
- <td>Mozilla 1.1</td>
297
- <td>Win 95+ / OSX.1+</td>
298
- <td>1.1</td>
299
- <td>A</td>
300
- </tr>
301
- <tr>
302
- <td>Gecko</td>
303
- <td>Mozilla 1.2</td>
304
- <td>Win 95+ / OSX.1+</td>
305
- <td>1.2</td>
306
- <td>A</td>
307
- </tr>
308
- <tr>
309
- <td>Gecko</td>
310
- <td>Mozilla 1.3</td>
311
- <td>Win 95+ / OSX.1+</td>
312
- <td>1.3</td>
313
- <td>A</td>
314
- </tr>
315
- <tr>
316
- <td>Gecko</td>
317
- <td>Mozilla 1.4</td>
318
- <td>Win 95+ / OSX.1+</td>
319
- <td>1.4</td>
320
- <td>A</td>
321
- </tr>
322
- <tr>
323
- <td>Gecko</td>
324
- <td>Mozilla 1.5</td>
325
- <td>Win 95+ / OSX.1+</td>
326
- <td>1.5</td>
327
- <td>A</td>
328
- </tr>
329
- <tr>
330
- <td>Gecko</td>
331
- <td>Mozilla 1.6</td>
332
- <td>Win 95+ / OSX.1+</td>
333
- <td>1.6</td>
334
- <td>A</td>
335
- </tr>
336
- <tr>
337
- <td>Gecko</td>
338
- <td>Mozilla 1.7</td>
339
- <td>Win 98+ / OSX.1+</td>
340
- <td>1.7</td>
341
- <td>A</td>
342
- </tr>
343
- <tr>
344
- <td>Gecko</td>
345
- <td>Mozilla 1.8</td>
346
- <td>Win 98+ / OSX.1+</td>
347
- <td>1.8</td>
348
- <td>A</td>
349
- </tr>
350
- <tr>
351
- <td>Gecko</td>
352
- <td>Seamonkey 1.1</td>
353
- <td>Win 98+ / OSX.2+</td>
354
- <td>1.8</td>
355
- <td>A</td>
356
- </tr>
357
- <tr>
358
- <td>Gecko</td>
359
- <td>Epiphany 2.20</td>
360
- <td>Gnome</td>
361
- <td>1.8</td>
362
- <td>A</td>
363
- </tr>
364
- <tr>
365
- <td>Webkit</td>
366
- <td>Safari 1.2</td>
367
- <td>OSX.3</td>
368
- <td>125.5</td>
369
- <td>A</td>
370
- </tr>
371
- <tr>
372
- <td>Webkit</td>
373
- <td>Safari 1.3</td>
374
- <td>OSX.3</td>
375
- <td>312.8</td>
376
- <td>A</td>
377
- </tr>
378
- <tr>
379
- <td>Webkit</td>
380
- <td>Safari 2.0</td>
381
- <td>OSX.4+</td>
382
- <td>419.3</td>
383
- <td>A</td>
384
- </tr>
385
- <tr>
386
- <td>Webkit</td>
387
- <td>Safari 3.0</td>
388
- <td>OSX.4+</td>
389
- <td>522.1</td>
390
- <td>A</td>
391
- </tr>
392
- <tr>
393
- <td>Webkit</td>
394
- <td>OmniWeb 5.5</td>
395
- <td>OSX.4+</td>
396
- <td>420</td>
397
- <td>A</td>
398
- </tr>
399
- <tr>
400
- <td>Webkit</td>
401
- <td>iPod Touch / iPhone</td>
402
- <td>iPod</td>
403
- <td>420.1</td>
404
- <td>A</td>
405
- </tr>
406
- <tr>
407
- <td>Webkit</td>
408
- <td>S60</td>
409
- <td>S60</td>
410
- <td>413</td>
411
- <td>A</td>
412
- </tr>
413
- <tr>
414
- <td>Presto</td>
415
- <td>Opera 7.0</td>
416
- <td>Win 95+ / OSX.1+</td>
417
- <td>-</td>
418
- <td>A</td>
419
- </tr>
420
- <tr>
421
- <td>Presto</td>
422
- <td>Opera 7.5</td>
423
- <td>Win 95+ / OSX.2+</td>
424
- <td>-</td>
425
- <td>A</td>
426
- </tr>
427
- <tr>
428
- <td>Presto</td>
429
- <td>Opera 8.0</td>
430
- <td>Win 95+ / OSX.2+</td>
431
- <td>-</td>
432
- <td>A</td>
433
- </tr>
434
- <tr>
435
- <td>Presto</td>
436
- <td>Opera 8.5</td>
437
- <td>Win 95+ / OSX.2+</td>
438
- <td>-</td>
439
- <td>A</td>
440
- </tr>
441
- <tr>
442
- <td>Presto</td>
443
- <td>Opera 9.0</td>
444
- <td>Win 95+ / OSX.3+</td>
445
- <td>-</td>
446
- <td>A</td>
447
- </tr>
448
- <tr>
449
- <td>Presto</td>
450
- <td>Opera 9.2</td>
451
- <td>Win 88+ / OSX.3+</td>
452
- <td>-</td>
453
- <td>A</td>
454
- </tr>
455
- <tr>
456
- <td>Presto</td>
457
- <td>Opera 9.5</td>
458
- <td>Win 88+ / OSX.3+</td>
459
- <td>-</td>
460
- <td>A</td>
461
- </tr>
462
- <tr>
463
- <td>Presto</td>
464
- <td>Opera for Wii</td>
465
- <td>Wii</td>
466
- <td>-</td>
467
- <td>A</td>
468
- </tr>
469
- <tr>
470
- <td>Presto</td>
471
- <td>Nokia N800</td>
472
- <td>N800</td>
473
- <td>-</td>
474
- <td>A</td>
475
- </tr>
476
- <tr>
477
- <td>Presto</td>
478
- <td>Nintendo DS browser</td>
479
- <td>Nintendo DS</td>
480
- <td>8.5</td>
481
- <td>C/A<sup>1</sup></td>
482
- </tr>
483
- <tr>
484
- <td>KHTML</td>
485
- <td>Konqureror 3.1</td>
486
- <td>KDE 3.1</td>
487
- <td>3.1</td>
488
- <td>C</td>
489
- </tr>
490
- <tr>
491
- <td>KHTML</td>
492
- <td>Konqureror 3.3</td>
493
- <td>KDE 3.3</td>
494
- <td>3.3</td>
495
- <td>A</td>
496
- </tr>
497
- <tr>
498
- <td>KHTML</td>
499
- <td>Konqureror 3.5</td>
500
- <td>KDE 3.5</td>
501
- <td>3.5</td>
502
- <td>A</td>
503
- </tr>
504
- <tr>
505
- <td>Tasman</td>
506
- <td>Internet Explorer 4.5</td>
507
- <td>Mac OS 8-9</td>
508
- <td>-</td>
509
- <td>X</td>
510
- </tr>
511
- <tr>
512
- <td>Tasman</td>
513
- <td>Internet Explorer 5.1</td>
514
- <td>Mac OS 7.6-9</td>
515
- <td>1</td>
516
- <td>C</td>
517
- </tr>
518
- <tr>
519
- <td>Tasman</td>
520
- <td>Internet Explorer 5.2</td>
521
- <td>Mac OS 8-X</td>
522
- <td>1</td>
523
- <td>C</td>
524
- </tr>
525
- <tr>
526
- <td>Misc</td>
527
- <td>NetFront 3.1</td>
528
- <td>Embedded devices</td>
529
- <td>-</td>
530
- <td>C</td>
531
- </tr>
532
- <tr>
533
- <td>Misc</td>
534
- <td>NetFront 3.4</td>
535
- <td>Embedded devices</td>
536
- <td>-</td>
537
- <td>A</td>
538
- </tr>
539
- <tr>
540
- <td>Misc</td>
541
- <td>Dillo 0.8</td>
542
- <td>Embedded devices</td>
543
- <td>-</td>
544
- <td>X</td>
545
- </tr>
546
- <tr>
547
- <td>Misc</td>
548
- <td>Links</td>
549
- <td>Text only</td>
550
- <td>-</td>
551
- <td>X</td>
552
- </tr>
553
- <tr>
554
- <td>Misc</td>
555
- <td>Lynx</td>
556
- <td>Text only</td>
557
- <td>-</td>
558
- <td>X</td>
559
- </tr>
560
- <tr>
561
- <td>Misc</td>
562
- <td>IE Mobile</td>
563
- <td>Windows Mobile 6</td>
564
- <td>-</td>
565
- <td>C</td>
566
- </tr>
567
- <tr>
568
- <td>Misc</td>
569
- <td>PSP browser</td>
570
- <td>PSP</td>
571
- <td>-</td>
572
- <td>C</td>
573
- </tr>
574
- <tr>
575
- <td>Other browsers</td>
576
- <td>All others</td>
577
- <td>-</td>
578
- <td>-</td>
579
- <td>U</td>
580
- </tr>
581
- </tbody>
582
259
  </table>
260
+
261
+ <!-- Blank Slate HTML -->
262
+ <div class="blank-slate-pf table-view-pf-empty hidden" id="emptyState1">
263
+ <div class="blank-slate-pf-icon">
264
+ <span class="pficon pficon pficon-add-circle-o"></span>
265
+ </div>
266
+ <h1>
267
+ Empty State Title
268
+ </h1>
269
+ <p>
270
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
271
+ </p>
272
+ <p>
273
+ Learn more about this <a href="#">on the documentation</a>.
274
+ </p>
275
+ <div class="blank-slate-pf-main-action">
276
+ <button class="btn btn-primary btn-lg"> Main Action </button>
277
+ </div>
278
+ <div class="blank-slate-pf-secondary-action">
279
+ <button class="btn btn-default"> Secondary Action </button> <button class="btn btn-default"> Secondary Action </button> <button class="btn btn-default"> Secondary Action </button>
280
+ </div>
281
+ </div>
282
+
283
+ <script>
284
+ $(document).ready(function() {
285
+
286
+ // JSON data for Table View
287
+ var dataSet = [{
288
+ engine: "Trident",
289
+ browser: "Internet Explorer 4.0",
290
+ platforms: "Win 95+",
291
+ version: "4",
292
+ grade: "X"
293
+ },{
294
+ engine: "Trident",
295
+ browser: "Internet Explorer 5.0",
296
+ platforms: "Win 95+",
297
+ version: "5",
298
+ grade: "C"
299
+ }, {
300
+ engine: "Trident",
301
+ browser: "Internet Explorer 5.5",
302
+ platforms: "Win 95+",
303
+ version: "5.5",
304
+ grade: "A"
305
+ }, {
306
+ engine: "Trident",
307
+ browser: "Internet Explorer 6",
308
+ platforms: "Win 98+",
309
+ version: "6",
310
+ grade: "A"
311
+ }, {
312
+ engine: "Trident",
313
+ browser: "Internet Explorer 7",
314
+ platforms: "Win XP SP2+",
315
+ version: "7",
316
+ grade: "A"
317
+ }, {
318
+ engine: "Trident",
319
+ browser: "AOL browser (AOL desktop)",
320
+ platforms: "Win XP",
321
+ version: "6",
322
+ grade: "A"
323
+ }, {
324
+ engine: "Gecko",
325
+ browser: "Firefox 1.0",
326
+ platforms: "Win 98+ / OSX.2+",
327
+ version: "1.7",
328
+ grade: "A"
329
+ }, {
330
+ engine: "Gecko",
331
+ browser: "Firefox 1.5",
332
+ platforms: "Win 98+ / OSX.2+",
333
+ version: "1.8",
334
+ grade: "A"
335
+ }, {
336
+ engine: "Gecko",
337
+ browser: "Firefox 2.0",
338
+ platforms: "Win 98+ / OSX.2+",
339
+ version: "1.8",
340
+ grade: "A"
341
+ }, {
342
+ engine: "Gecko",
343
+ browser: "Firefox 3.0",
344
+ platforms: "Win 2k+ / OSX.3+",
345
+ version: "1.9",
346
+ grade: "A"
347
+ }, {
348
+ engine: "Gecko",
349
+ browser: "Camino 1.0",
350
+ platforms: "OSX.2+",
351
+ version: "1.8",
352
+ grade: "A"
353
+ }, {
354
+ engine: "Gecko",
355
+ browser: "Camino 1.5",
356
+ platforms: "OSX.3+",
357
+ version: "1.8",
358
+ grade: "A"
359
+ }, {
360
+ engine: "Gecko",
361
+ browser: "Netscape 7.2",
362
+ platforms: "Win 95+ / Mac OS 8.6-9.2",
363
+ version: "1.7",
364
+ grade: "A"
365
+ }, {
366
+ engine: "Gecko",
367
+ browser: "Netscape Browser 8",
368
+ platforms: "Win 98SE+",
369
+ version: "1.7",
370
+ grade: "A"
371
+ }, {
372
+ engine: "Gecko",
373
+ browser: "Netscape Navigator 9",
374
+ platforms: "Win 98+ / OSX.2+",
375
+ version: "1.8",
376
+ grade: "A"
377
+ }, {
378
+ engine: "Gecko",
379
+ browser: "Mozilla 1.0",
380
+ platforms: "Win 95+ / OSX.1+",
381
+ version: "1",
382
+ grade: "A"
383
+ }, {
384
+ engine: "Gecko",
385
+ browser: "Mozilla 1.1",
386
+ platforms: "Win 95+ / OSX.1+",
387
+ version: "1.1",
388
+ grade: "A"
389
+ }, {
390
+ engine: "Gecko",
391
+ browser: "Mozilla 1.2",
392
+ platforms: "Win 95+ / OSX.1+",
393
+ version: "1.2",
394
+ grade: "A"
395
+ }];
396
+
397
+ // DataTable Config
398
+ $("#table1").DataTable({
399
+ columns: [
400
+ { data: null,
401
+ className: "table-view-pf-select",
402
+ render: function (data, type, full, meta) {
403
+ // Select row checkbox renderer
404
+ var id = "select" + meta.row;
405
+ return '<label class="sr-only" for="' + id + '">Select row ' + meta.row +
406
+ '</label><input type="checkbox" id="' + id + '" name="' + id + '">';
407
+ },
408
+ sortable: false
409
+ },
410
+ { data: "engine" },
411
+ { data: "browser" },
412
+ { data: "platforms" },
413
+ { data: "version" },
414
+ { data: "grade"},
415
+ { data: null,
416
+ className: "table-view-pf-actions",
417
+ render: function (data, type, full, meta) {
418
+ // Inline action button renderer
419
+ return '<div class="table-view-pf-btn"><button class="btn btn-default" type="button">Actions</button></div>';
420
+ }
421
+ }, {
422
+ data: null,
423
+ className: "table-view-pf-actions",
424
+ render: function (data, type, full, meta) {
425
+ // Inline action kebab renderer
426
+ return '<div class="dropdown dropdown-kebab-pf">' +
427
+ '<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">' +
428
+ '<span class="fa fa-ellipsis-v"></span></button>' +
429
+ '<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownKebabRight">' +
430
+ '<li><a href="#">Action</a></li>' +
431
+ '<li><a href="#">Another action</a></li>' +
432
+ '<li><a href="#">Something else here</a></li>' +
433
+ '<li role="separator" class="divider"></li>' +
434
+ '<li><a href="#">Separated link</a></li></ul></div>';
435
+ }
436
+ }
437
+ ],
438
+ data: dataSet,
439
+ dom: "t",
440
+ language: {
441
+ zeroRecords: "No records found"
442
+ },
443
+ order: [[ 1, 'asc' ]],
444
+ pfConfig: {
445
+ emptyStateSelector: "#emptyState1",
446
+ filterCols: [
447
+ null,
448
+ {
449
+ default: true,
450
+ optionSelector: "#filter1",
451
+ placeholder: "Filter By Rendering Engine..."
452
+ }, {
453
+ optionSelector: "#filter2",
454
+ placeholder: "Filter By Browser..."
455
+ }, {
456
+ optionSelector: "#filter3",
457
+ placeholder: "Filter By Platform(s)..."
458
+ }, {
459
+ optionSelector: "#filter4",
460
+ placeholder: "Filter By Engine Version..."
461
+ }, {
462
+ optionSelector: "#filter5",
463
+ placeholder: "Filter By CSS Grade..."
464
+ }
465
+ ],
466
+ toolbarSelector: "#toolbar1",
467
+ selectAllSelector: 'th:first-child input[type="checkbox"]'
468
+ },
469
+ select: {
470
+ selector: 'td:first-child input[type="checkbox"]',
471
+ style: 'multi'
472
+ },
473
+ });
474
+
475
+ /**
476
+ * Utility to show empty Table View
477
+ *
478
+ * @param {object} config - Config properties associated with a Table View
479
+ * @param {object} config.data - Data set for DataTable
480
+ * @param {string} config.deleteRowsSelector - Selector for delete rows control
481
+ * @param {string} config.restoreRowsSelector - Selector for restore rows control
482
+ * @param {string} config.tableSelector - Selector for the HTML table
483
+ */
484
+ var emptyTableViewUtil = function (config) {
485
+ var self = this;
486
+
487
+ this.dt = $(config.tableSelector).DataTable(); // DataTable
488
+ this.deleteRows = $(config.deleteRowsSelector); // Delete rows control
489
+ this.restoreRows = $(config.restoreRowsSelector); // Restore rows control
490
+
491
+ // Handle click on delete rows control
492
+ this.deleteRows.on('click', function() {
493
+ self.dt.clear().draw();
494
+ $(self.restoreRows).prop("disabled", false);
495
+ });
496
+
497
+ // Handle click on restore rows control
498
+ this.restoreRows.on('click', function() {
499
+ self.dt.rows.add(config.data).draw();
500
+ $(this).prop("disabled", true);
501
+ });
502
+
503
+ // Initialize restore rows
504
+ if (this.dt.data().length === 0) {
505
+ $(this.restoreRows).prop("disabled", false);
506
+ }
507
+ };
508
+
509
+ // Initialize empty Table View util
510
+ new emptyTableViewUtil({
511
+ data: dataSet,
512
+ deleteRowsSelector: "#deleteRows1",
513
+ restoreRowsSelector: "#restoreRows1",
514
+ tableSelector: "#table1"
515
+ });
516
+
517
+ /**
518
+ * Utility to find items in Table View
519
+ */
520
+ var findTableViewUtil = function (config) {
521
+ // Upon clicking the find button, show the find dropdown content
522
+ $(".btn-find").click(function () {
523
+ $(this).parent().find(".find-pf-dropdown-container").toggle();
524
+ });
525
+
526
+ // Upon clicking the find close button, hide the find dropdown content
527
+ $(".btn-find-close").click(function () {
528
+ $(".find-pf-dropdown-container").hide();
529
+ });
530
+ };
531
+
532
+ // Initialize find util
533
+ new findTableViewUtil();
534
+
535
+ });
536
+ </script>
537
+
538
+
583
539
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eget eros tincidunt, semper ante nec, dapibus ante.</p>
584
540
  </div><!-- /col -->
585
541
  <div class="col-sm-3 col-md-2 col-sm-pull-9 col-md-pull-10 sidebar-pf sidebar-pf-left">
@@ -604,14 +560,11 @@
604
560
  </div><!-- /row -->
605
561
  </div><!-- /container -->
606
562
  <script>
607
- // Initialize Datatables
608
- $(document).ready( function() {
609
- $('.datatable').dataTable({
610
- "fnDrawCallback": function( oSettings ) {
611
- // if .sidebar-pf exists, call sidebar() after the data table is drawn
612
- if ($('.sidebar-pf').length > 0) {
613
- $(document).sidebar();
614
- }
563
+ $(document).ready(function () {
564
+ $("#table1").DataTable().on("draw.dt", function () {
565
+ // if .sidebar-pf exists, call sidebar() after the data table is drawn
566
+ if ($('.sidebar-pf').length > 0) {
567
+ $(document).sidebar();
615
568
  }
616
569
  });
617
570
  });