Styling for show/hide columns

This commit is contained in:
Friedrich Lindenberg 2012-02-14 16:30:04 +01:00
parent 7d06754a2f
commit 7e79d39f8d
3 changed files with 7 additions and 6 deletions

View File

@ -515,12 +515,12 @@ td.expression-preview-value {
* Read-only mode
*********************************************************/
/*.read-only .data-table tr td:first-child,
.read-only .data-table tr th:first-child
.read-only .no-hidden .data-table tr td:first-child,
.read-only .no-hidden .data-table tr th:first-child
{
display: none;
}
*/
.read-only .write-op,
.read-only a.data-table-cell-edit

View File

@ -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>'
, rootActions: ' \
{{#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}}'
, cellEditor: ' \
<div class="menu-container data-table-cell-editor"> \

View File

@ -128,7 +128,8 @@ my.DataExplorer = Backbone.View.extend({
// Hash of 'page' views (i.e. those for whole page) keyed by page name
this.pageViews = {
grid: new my.DataTable({
model: this.model
model: this.model,
config: this.config
})
, graph: new my.FlotGraph({
model: this.model
@ -424,7 +425,7 @@ my.DataTable = Backbone.View.extend({
});
newView.render();
});
$(".root-header-menu").toggle((self.hiddenHeaders.length > 0));
this.el.toggleClass('no-hidden', (self.hiddenHeaders.length == 0));
return this;
}
});