[SSE] Add buttons in view tab
This commit is contained in:
parent
b69e53982e
commit
63e8983359
|
@ -267,6 +267,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="separator long"></div>
|
||||
<div class="group">
|
||||
<span class="btn-slot text x-huge" id="slot-btn-interface-theme"></span>
|
||||
</div>
|
||||
<div class="separator long"></div>
|
||||
<div class="group">
|
||||
<span class="btn-slot text x-huge" id="slot-btn-freeze"></span>
|
||||
</div>
|
||||
|
@ -287,6 +291,15 @@
|
|||
<span class="btn-slot text" id="slot-chk-zeros"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="separator long"></div>
|
||||
<div class="group small">
|
||||
<div class="elset">
|
||||
<span class="btn-slot text" id="slot-chk-statusbar"></span>
|
||||
</div>
|
||||
<div class="elset">
|
||||
<span class="btn-slot text" id="slot-chk-toolbar"></span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
@ -209,6 +209,41 @@ define([
|
|||
});
|
||||
this.lockedControls.push(this.chZeros);
|
||||
|
||||
this.btnInterfaceTheme = new Common.UI.Button({
|
||||
parentEl: $host.find('#slot-btn-interface-theme'),
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon',
|
||||
caption: this.textInterfaceTheme,
|
||||
split: true,
|
||||
menu: true,
|
||||
dataHint: '1',
|
||||
dataHintDirection: 'bottom',
|
||||
dataHintOffset: 'small'
|
||||
});
|
||||
this.lockedControls.push(this.btnInterfaceTheme);
|
||||
|
||||
this.chStatusbar = new Common.UI.CheckBox({
|
||||
el: $host.findById('#slot-chk-statusbar'),
|
||||
labelText: this.textCombineSheetAndStatusBars,
|
||||
value : true,
|
||||
lock : [_set.sheetLock, _set.lostConnect, _set.coAuth, _set.editCell],
|
||||
dataHint : '1',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
});
|
||||
this.lockedControls.push(this.chStatusbar);
|
||||
|
||||
this.chToolbar = new Common.UI.CheckBox({
|
||||
el: $host.findById('#slot-chk-toolbar'),
|
||||
labelText: this.textAlwaysShowToolbar,
|
||||
value : true,
|
||||
lock : [_set.sheetLock, _set.lostConnect, _set.coAuth, _set.editCell],
|
||||
dataHint : '1',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
});
|
||||
this.lockedControls.push(this.chToolbar);
|
||||
|
||||
$host.find('#slot-lbl-zoom').text(this.textZoom);
|
||||
|
||||
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
|
||||
|
@ -339,7 +374,10 @@ define([
|
|||
textFreezeRow: 'Freeze Top Row',
|
||||
textFreezeCol: 'Freeze First Column',
|
||||
textUnFreeze: 'Unfreeze Panes',
|
||||
textZeros: 'Show zeros'
|
||||
textZeros: 'Show zeros',
|
||||
textCombineSheetAndStatusBars: 'Combine sheet and status bars',
|
||||
textAlwaysShowToolbar: 'Always show toolbar',
|
||||
textInterfaceTheme: 'Interface theme',
|
||||
}
|
||||
}()), SSE.Views.ViewTab || {}));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue