[DE] Distribute table rows and columns.
This commit is contained in:
parent
c5ae3b1d01
commit
5854f4ea43
|
@ -2578,16 +2578,16 @@ define([
|
||||||
var menuTableDistRows = new Common.UI.MenuItem({
|
var menuTableDistRows = new Common.UI.MenuItem({
|
||||||
caption : me.textDistributeRows
|
caption : me.textDistributeRows
|
||||||
}).on('click', _.bind(function(){
|
}).on('click', _.bind(function(){
|
||||||
// if (me.api)
|
if (me.api)
|
||||||
// me.api.distributeCols();
|
me.api.asc_DistributeTableCells(false);
|
||||||
me.fireEvent('editcomplete', me);
|
me.fireEvent('editcomplete', me);
|
||||||
}, me));
|
}, me));
|
||||||
|
|
||||||
var menuTableDistCols = new Common.UI.MenuItem({
|
var menuTableDistCols = new Common.UI.MenuItem({
|
||||||
caption : me.textDistributeCols
|
caption : me.textDistributeCols
|
||||||
}).on('click', _.bind(function(){
|
}).on('click', _.bind(function(){
|
||||||
// if (me.api)
|
if (me.api)
|
||||||
// me.api.distributeCols();
|
me.api.asc_DistributeTableCells(true);
|
||||||
me.fireEvent('editcomplete', me);
|
me.fireEvent('editcomplete', me);
|
||||||
}, me));
|
}, me));
|
||||||
|
|
||||||
|
|
|
@ -401,14 +401,16 @@ define([
|
||||||
el: $('#table-btn-distrub-rows')
|
el: $('#table-btn-distrub-rows')
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.btnDistributeRows);
|
this.lockedControls.push(this.btnDistributeRows);
|
||||||
this.btnDistributeRows.on('click', _.bind(function(field, newValue, oldValue, eOpts){
|
this.btnDistributeRows.on('click', _.bind(function(btn){
|
||||||
|
this.api.asc_DistributeTableCells(false);
|
||||||
}, this));
|
}, this));
|
||||||
|
|
||||||
this.btnDistributeCols = new Common.UI.Button({
|
this.btnDistributeCols = new Common.UI.Button({
|
||||||
el: $('#table-btn-distrub-cols')
|
el: $('#table-btn-distrub-cols')
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.btnDistributeCols);
|
this.lockedControls.push(this.btnDistributeCols);
|
||||||
this.btnDistributeCols.on('click', _.bind(function(field, newValue, oldValue, eOpts){
|
this.btnDistributeCols.on('click', _.bind(function(btn){
|
||||||
|
this.api.asc_DistributeTableCells(true);
|
||||||
}, this));
|
}, this));
|
||||||
|
|
||||||
this.linkAdvanced = $('#table-advanced-link');
|
this.linkAdvanced = $('#table-advanced-link');
|
||||||
|
|
Loading…
Reference in a new issue