Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

DOCS Merge SelectAll button into datatable (#26044)

Andrzej Kopytkoc3a82b8e6b08
diff --git a/docs/sphinx_setup/_static/css/custom.css b/docs/sphinx_setup/_static/css/custom.css
index aac910c5ecd..9f3d519ecd6 100644
--- a/docs/sphinx_setup/_static/css/custom.css
+++ b/docs/sphinx_setup/_static/css/custom.css
@@ -144,15 +144,11 @@ nav.bd-links .current>a {
}
a.current {
- background-color: #76CEFF!important;
+ background-color: #daf2ff!important;
}
.bd-sidebar-primary label.toctree-toggle:hover {
- background: #76CEFF!important;
-}
-
-a.current svg:not(:host).svg-inline--fa, svg:not(:root).svg-inline--fa {
- color: black;
+ background: #daf2ff!important;
}
.bd-header .navbar-nav li a.nav-link {
diff --git a/docs/sphinx_setup/_static/css/openVinoDataTables.css b/docs/sphinx_setup/_static/css/openVinoDataTables.css
index 36e9bc84d6c..526aabb6abe 100644
--- a/docs/sphinx_setup/_static/css/openVinoDataTables.css
+++ b/docs/sphinx_setup/_static/css/openVinoDataTables.css
@@ -26,6 +26,12 @@ table.dataTable {
width: 100%;
}
+.dt-container {
+ background-color: white !important;
+ padding: .5rem !important;
+ border: 1px solid rgba(211, 211, 211, 0.4);
+}
+
th span p {
margin-bottom: .15rem !important;
white-space: nowrap;
diff --git a/docs/sphinx_setup/_static/js/openVinoDataTables.js b/docs/sphinx_setup/_static/js/openVinoDataTables.js
index 59e750220e2..6f7231db424 100644
--- a/docs/sphinx_setup/_static/js/openVinoDataTables.js
+++ b/docs/sphinx_setup/_static/js/openVinoDataTables.js
@@ -1,7 +1,13 @@
$(document).ready(function () {
var table = $('table.modeldata').DataTable({
+ responsive: true,
"autoWidth": false,
stateSave: true,
+ language: {
+ buttons: {
+ colvisRestore: "Show all columns"
+ }
+ },
lengthMenu: [
[10, 25, 50, -1],
['10 rows', '25 rows', '50 rows', 'Show all rows']
@@ -10,11 +16,9 @@ $(document).ready(function () {
topStart: {
buttons: [
'pageLength',
- 'colvis',
{
- extend: 'colvisGroup',
- text: 'Show all columns',
- show: ':hidden'
+ extend: 'colvis',
+ postfixButtons: ['colvisRestore'],
},
{
extend: 'print',