Styling for show/hide columns
This commit is contained in:
@@ -515,12 +515,12 @@ td.expression-preview-value {
|
|||||||
* Read-only mode
|
* Read-only mode
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
|
|
||||||
/*.read-only .data-table tr td:first-child,
|
.read-only .no-hidden .data-table tr td:first-child,
|
||||||
.read-only .data-table tr th:first-child
|
.read-only .no-hidden .data-table tr th:first-child
|
||||||
{
|
{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
.read-only .write-op,
|
.read-only .write-op,
|
||||||
.read-only a.data-table-cell-edit
|
.read-only a.data-table-cell-edit
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ var util = function() {
|
|||||||
, rowActions: '<li><a data-action="deleteRow" class="menuAction write-op" href="JavaScript:void(0);">Delete this row</a></li>'
|
, rowActions: '<li><a data-action="deleteRow" class="menuAction write-op" href="JavaScript:void(0);">Delete this row</a></li>'
|
||||||
, rootActions: ' \
|
, rootActions: ' \
|
||||||
{{#columns}} \
|
{{#columns}} \
|
||||||
<li><a data-action="showColumn" data-column="{{.}}" class="menuAction" href="JavaScript:void(0);">Add column: {{.}}</a></li> \
|
<li><a data-action="showColumn" data-column="{{.}}" class="menuAction" href="JavaScript:void(0);">Show column: {{.}}</a></li> \
|
||||||
{{/columns}}'
|
{{/columns}}'
|
||||||
, cellEditor: ' \
|
, cellEditor: ' \
|
||||||
<div class="menu-container data-table-cell-editor"> \
|
<div class="menu-container data-table-cell-editor"> \
|
||||||
|
|||||||
@@ -128,7 +128,8 @@ my.DataExplorer = Backbone.View.extend({
|
|||||||
// Hash of 'page' views (i.e. those for whole page) keyed by page name
|
// Hash of 'page' views (i.e. those for whole page) keyed by page name
|
||||||
this.pageViews = {
|
this.pageViews = {
|
||||||
grid: new my.DataTable({
|
grid: new my.DataTable({
|
||||||
model: this.model
|
model: this.model,
|
||||||
|
config: this.config
|
||||||
})
|
})
|
||||||
, graph: new my.FlotGraph({
|
, graph: new my.FlotGraph({
|
||||||
model: this.model
|
model: this.model
|
||||||
@@ -424,7 +425,7 @@ my.DataTable = Backbone.View.extend({
|
|||||||
});
|
});
|
||||||
newView.render();
|
newView.render();
|
||||||
});
|
});
|
||||||
$(".root-header-menu").toggle((self.hiddenHeaders.length > 0));
|
this.el.toggleClass('no-hidden', (self.hiddenHeaders.length == 0));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user