[SSE] Added button for selecting pivot table.
This commit is contained in:
parent
f0bf279175
commit
8d89ee185f
|
@ -59,6 +59,7 @@ define([
|
|||
'pivottable:rowscolumns': _.bind(this.onCheckTemplateChange, this),
|
||||
'pivottable:create': _.bind(this.onCreateClick, this),
|
||||
'pivottable:refresh': _.bind(this.onRefreshClick, this),
|
||||
'pivottable:select': _.bind(this.onSelectClick, this),
|
||||
'pivottable:style': _.bind(this.onPivotStyleSelect, this),
|
||||
'pivottable:layout': _.bind(this.onPivotLayout, this),
|
||||
'pivottable:blankrows': _.bind(this.onPivotBlankRows, this),
|
||||
|
@ -143,6 +144,10 @@ define([
|
|||
Common.NotificationCenter.trigger('edit:complete', this);
|
||||
},
|
||||
|
||||
onSelectClick: function(btn, opts){
|
||||
Common.NotificationCenter.trigger('edit:complete', this);
|
||||
},
|
||||
|
||||
onPivotStyleSelect: function(record){
|
||||
if (this.api) {
|
||||
this._originalProps.asc_getStyleInfo().asc_setName(this.api, this._originalProps, record.get('name'));
|
||||
|
|
|
@ -67,6 +67,10 @@ define([
|
|||
'<span id="slot-btn-refresh-pivot" class="btn-slot text x-huge"></span>' +
|
||||
'</div>' +
|
||||
'<div class="separator long"/>' +
|
||||
'<div class="group">' +
|
||||
'<span id="slot-btn-select-pivot" class="btn-slot text x-huge"></span>' +
|
||||
'</div>' +
|
||||
'<div class="separator long"/>' +
|
||||
'<div class="group">' +
|
||||
'<div class="elset">' +
|
||||
'<span class="btn-slot text" id="slot-chk-header-row"></span>' +
|
||||
|
@ -114,6 +118,10 @@ define([
|
|||
me.fireEvent('pivottable:refresh');
|
||||
});
|
||||
|
||||
this.btnSelectPivot.on('click', function (e) {
|
||||
me.fireEvent('pivottable:select');
|
||||
});
|
||||
|
||||
this.chRowHeader.on('change', function (field, value) {
|
||||
me.fireEvent('pivottable:rowscolumns', [0, value]);
|
||||
});
|
||||
|
@ -243,6 +251,13 @@ define([
|
|||
});
|
||||
// this.lockedControls.push(this.btnRefreshPivot);
|
||||
|
||||
this.btnSelectPivot = new Common.UI.Button({
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-update-pivot',
|
||||
caption: this.txtSelect
|
||||
});
|
||||
this.lockedControls.push(this.btnSelectPivot);
|
||||
|
||||
this.pivotStyles = new Common.UI.ComboDataView({
|
||||
cls : 'combo-pivot-template',
|
||||
enableKeyEvents : true,
|
||||
|
@ -270,6 +285,7 @@ define([
|
|||
})).then(function(){
|
||||
me.btnAddPivot.updateHint(me.tipCreatePivot);
|
||||
me.btnRefreshPivot.updateHint(me.tipRefresh);
|
||||
me.btnSelectPivot.updateHint(me.tipSelect);
|
||||
me.btnPivotLayout.updateHint(me.capLayout);
|
||||
me.btnPivotBlankRows.updateHint(me.capBlankRows);
|
||||
me.btnPivotSubtotals.updateHint(me.tipSubtotals);
|
||||
|
@ -289,6 +305,7 @@ define([
|
|||
|
||||
this.btnAddPivot.render(this.$el.find('#slot-btn-add-pivot'));
|
||||
this.btnRefreshPivot.render(this.$el.find('#slot-btn-refresh-pivot'));
|
||||
this.btnSelectPivot.render(this.$el.find('#slot-btn-select-pivot'));
|
||||
this.btnPivotLayout.render(this.$el.find('#slot-btn-pivot-report-layout'));
|
||||
this.btnPivotBlankRows.render(this.$el.find('#slot-btn-pivot-blank-rows'));
|
||||
this.btnPivotSubtotals.render(this.$el.find('#slot-btn-pivot-subtotals'));
|
||||
|
@ -341,7 +358,9 @@ define([
|
|||
txtRefresh: 'Refresh',
|
||||
tipRefresh: 'Update the information from data source',
|
||||
tipGrandTotals: 'Show or hide grand totals',
|
||||
tipSubtotals: 'Show or hide subtotals'
|
||||
tipSubtotals: 'Show or hide subtotals',
|
||||
txtSelect: 'Select',
|
||||
tipSelect: 'Select entire pivot table'
|
||||
}
|
||||
}()), SSE.Views.PivotTable || {}));
|
||||
});
|
|
@ -1499,6 +1499,8 @@
|
|||
"SSE.Views.PivotTable.tipRefresh": "Update the information from data source",
|
||||
"SSE.Views.PivotTable.tipGrandTotals": "Show or hide grand totals",
|
||||
"SSE.Views.PivotTable.tipSubtotals": "Show or hide subtotals",
|
||||
"SSE.Views.PivotTable.txtSelect": "Select",
|
||||
"SSE.Views.PivotTable.tipSelect": "Select entire pivot table",
|
||||
"SSE.Views.PrintSettings.btnPrint": "Save & Print",
|
||||
"SSE.Views.PrintSettings.cancelButtonText": "Cancel",
|
||||
"SSE.Views.PrintSettings.strBottom": "Bottom",
|
||||
|
|
Loading…
Reference in a new issue