diff --git a/css/data-explorer.css b/css/data-explorer.css index 77211244..ba97ca75 100644 --- a/css/data-explorer.css +++ b/css/data-explorer.css @@ -132,6 +132,19 @@ width: 20px; } +/********* read-only mode **********/ + +.read-only .data-table tr td:first-child, +.read-only .data-table tr th:first-child +{ + display: none; +} + +.read-only .column-header-menu, +.read-only .row-header-menu +{ + display: none; +} /********************************************************** * Data Table Menus diff --git a/demo/js/app.js b/demo/js/app.js index a1a328e9..49059d8d 100755 --- a/demo/js/app.js +++ b/demo/js/app.js @@ -15,6 +15,10 @@ $(function() { }); window.$container.append(window.dataExplorer.el); }); + $('a.set-read-only').click(function() { + window.dataExplorer.setReadOnly(); + alert('Read-only mode set'); + }); }) function demoDataset() { diff --git a/demo/newtheme.html b/demo/newtheme.html index 234eea33..fda5bb3e 100644 --- a/demo/newtheme.html +++ b/demo/newtheme.html @@ -28,7 +28,8 @@