[SSE] Convert table to range.
This commit is contained in:
parent
e25fe1c73b
commit
a7b3b6fa51
|
@ -73,6 +73,11 @@
|
||||||
<div id="table-btn-edit" style="display: inline-block; float:right;"></div>
|
<div id="table-btn-edit" style="display: inline-block; float:right;"></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="padding-small" colspan=2>
|
||||||
|
<button type="button" class="btn btn-text-default" id="table-btn-convert-range" style="width:100%;"><%= scope.textConvertRange %></button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="padding-small" colspan=2>
|
<td class="padding-small" colspan=2>
|
||||||
<div class="separator horizontal"></div>
|
<div class="separator horizontal"></div>
|
||||||
|
|
|
@ -286,6 +286,15 @@ define([
|
||||||
this.btnEdit.menu.on('item:click', _.bind(this.onEditClick, this));
|
this.btnEdit.menu.on('item:click', _.bind(this.onEditClick, this));
|
||||||
this.lockedControls.push(this.btnEdit);
|
this.lockedControls.push(this.btnEdit);
|
||||||
|
|
||||||
|
this.btnConvertRange = new Common.UI.Button({
|
||||||
|
el: $('#table-btn-convert-range')
|
||||||
|
});
|
||||||
|
this.btnConvertRange.on('click', _.bind(function(btn){
|
||||||
|
if (this.api) this.api.asc_convertTableToRange(this._state.TableName);
|
||||||
|
Common.NotificationCenter.trigger('edit:complete', this);
|
||||||
|
}, this));
|
||||||
|
this.lockedControls.push(this.btnConvertRange);
|
||||||
|
|
||||||
$(this.el).on('click', '#table-advanced-link', _.bind(this.openAdvancedSettings, this));
|
$(this.el).on('click', '#table-advanced-link', _.bind(this.openAdvancedSettings, this));
|
||||||
|
|
||||||
this._initSettings = false;
|
this._initSettings = false;
|
||||||
|
@ -534,7 +543,8 @@ define([
|
||||||
textIsLocked : 'This element is being edited by another user.',
|
textIsLocked : 'This element is being edited by another user.',
|
||||||
notcriticalErrorTitle : 'Warning',
|
notcriticalErrorTitle : 'Warning',
|
||||||
textReservedName : 'The name you are trying to use is already referenced in cell formulas. Please use some other name.',
|
textReservedName : 'The name you are trying to use is already referenced in cell formulas. Please use some other name.',
|
||||||
textAdvanced: 'Show advanced settings'
|
textAdvanced: 'Show advanced settings',
|
||||||
|
textConvertRange: 'Convert to range'
|
||||||
|
|
||||||
}, SSE.Views.TableSettings || {}));
|
}, SSE.Views.TableSettings || {}));
|
||||||
});
|
});
|
|
@ -1458,6 +1458,7 @@
|
||||||
"SSE.Views.TableSettings.textTableName": "Table Name",
|
"SSE.Views.TableSettings.textTableName": "Table Name",
|
||||||
"SSE.Views.TableSettings.textTemplate": "Select From Template",
|
"SSE.Views.TableSettings.textTemplate": "Select From Template",
|
||||||
"SSE.Views.TableSettings.textTotal": "Total",
|
"SSE.Views.TableSettings.textTotal": "Total",
|
||||||
|
"SSE.Views.TableSettings.textConvertRange": "Convert to range",
|
||||||
"SSE.Views.TableSettingsAdvanced.cancelButtonText": "Cancel",
|
"SSE.Views.TableSettingsAdvanced.cancelButtonText": "Cancel",
|
||||||
"SSE.Views.TableSettingsAdvanced.okButtonText": "Ok",
|
"SSE.Views.TableSettingsAdvanced.okButtonText": "Ok",
|
||||||
"SSE.Views.TableSettingsAdvanced.textAlt": "Alternative Text",
|
"SSE.Views.TableSettingsAdvanced.textAlt": "Alternative Text",
|
||||||
|
|
Loading…
Reference in a new issue