Skip to content

Commit 2308069

Browse files
authored
[DOCS] Merge SelectAll button into datatable to 24-3 (#26049)
Port for: #26042
1 parent 428b5a9 commit 2308069

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

docs/sphinx_setup/_static/css/custom.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,11 @@ nav.bd-links .current>a {
144144
}
145145

146146
a.current {
147-
background-color: #76CEFF!important;
147+
background-color: #daf2ff!important;
148148
}
149149

150150
.bd-sidebar-primary label.toctree-toggle:hover {
151-
background: #76CEFF!important;
152-
}
153-
154-
a.current svg:not(:host).svg-inline--fa, svg:not(:root).svg-inline--fa {
155-
color: black;
151+
background: #daf2ff!important;
156152
}
157153

158154
.bd-header .navbar-nav li a.nav-link {

docs/sphinx_setup/_static/css/openVinoDataTables.css

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ table.dataTable {
2626
width: 100%;
2727
}
2828

29+
.dt-container {
30+
background-color: white !important;
31+
padding: .5rem !important;
32+
border: 1px solid rgba(211, 211, 211, 0.4);
33+
}
34+
2935
th span p {
3036
margin-bottom: .15rem !important;
3137
white-space: nowrap;

docs/sphinx_setup/_static/js/openVinoDataTables.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
$(document).ready(function () {
22
var table = $('table.modeldata').DataTable({
3+
responsive: true,
34
"autoWidth": false,
45
stateSave: true,
6+
language: {
7+
buttons: {
8+
colvisRestore: "Show all columns"
9+
}
10+
},
511
lengthMenu: [
612
[10, 25, 50, -1],
713
['10 rows', '25 rows', '50 rows', 'Show all rows']
@@ -10,11 +16,9 @@ $(document).ready(function () {
1016
topStart: {
1117
buttons: [
1218
'pageLength',
13-
'colvis',
1419
{
15-
extend: 'colvisGroup',
16-
text: 'Show all columns',
17-
show: ':hidden'
20+
extend: 'colvis',
21+
postfixButtons: ['colvisRestore'],
1822
},
1923
{
2024
extend: 'print',

0 commit comments

Comments
 (0)