Commit a7b3b6fa authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Convert table to range.

parent e25fe1c7
......@@ -73,6 +73,11 @@
<div id="table-btn-edit" style="display: inline-block; float:right;"></div>
</td>
</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>
<td class="padding-small" colspan=2>
<div class="separator horizontal"></div>
......
......@@ -286,6 +286,15 @@ define([
this.btnEdit.menu.on('item:click', _.bind(this.onEditClick, this));
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._initSettings = false;
......@@ -534,7 +543,8 @@ define([
textIsLocked : 'This element is being edited by another user.',
notcriticalErrorTitle : 'Warning',
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 || {}));
});
\ No newline at end of file
......@@ -1458,6 +1458,7 @@
"SSE.Views.TableSettings.textTableName": "Table Name",
"SSE.Views.TableSettings.textTemplate": "Select From Template",
"SSE.Views.TableSettings.textTotal": "Total",
"SSE.Views.TableSettings.textConvertRange": "Convert to range",
"SSE.Views.TableSettingsAdvanced.cancelButtonText": "Cancel",
"SSE.Views.TableSettingsAdvanced.okButtonText": "Ok",
"SSE.Views.TableSettingsAdvanced.textAlt": "Alternative Text",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment