[SSE] Data tab: show/hide details
This commit is contained in:
parent
3a6f954533
commit
18d37fc50a
|
@ -150,6 +150,7 @@ define([
|
||||||
})).show();
|
})).show();
|
||||||
} else if (val!==undefined) //undefined - error, true - rows, false - columns
|
} else if (val!==undefined) //undefined - error, true - rows, false - columns
|
||||||
me.api.asc_group(val);
|
me.api.asc_group(val);
|
||||||
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
},
|
},
|
||||||
|
|
||||||
onTextToColumn: function() {
|
onTextToColumn: function() {
|
||||||
|
@ -179,11 +180,11 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onShowClick: function() {
|
onShowClick: function() {
|
||||||
// this.api.asc_showDetails();
|
this.api.asc_changeGroupDetails(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
onHideClick: function() {
|
onHideClick: function() {
|
||||||
// this.api.asc_hideDetails();
|
this.api.asc_changeGroupDetails(false);
|
||||||
},
|
},
|
||||||
|
|
||||||
textWizard: 'Text to Columns Wizard'
|
textWizard: 'Text to Columns Wizard'
|
||||||
|
|
|
@ -161,14 +161,14 @@
|
||||||
<span class="btn-slot text x-huge" id="slot-btn-group"></span>
|
<span class="btn-slot text x-huge" id="slot-btn-group"></span>
|
||||||
<span class="btn-slot text x-huge" id="slot-btn-ungroup"></span>
|
<span class="btn-slot text x-huge" id="slot-btn-ungroup"></span>
|
||||||
</div>
|
</div>
|
||||||
<!--<div class="group">-->
|
<div class="group">
|
||||||
<!--<div class="elset">-->
|
<div class="elset">
|
||||||
<!--<span class="btn-slot" id="slot-btn-show-details" style="width:auto;"></span>-->
|
<span class="btn-slot" id="slot-btn-show-details" style="width:auto;"></span>
|
||||||
<!--</div>-->
|
</div>
|
||||||
<!--<div class="elset">-->
|
<div class="elset">
|
||||||
<!--<span class="btn-slot" id="slot-btn-hide-details" style="width:auto;"></span>-->
|
<span class="btn-slot" id="slot-btn-hide-details" style="width:auto;"></span>
|
||||||
<!--</div>-->
|
</div>
|
||||||
<!--</div>-->
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -60,12 +60,12 @@ define([
|
||||||
me.btnTextToColumns.on('click', function (b, e) {
|
me.btnTextToColumns.on('click', function (b, e) {
|
||||||
me.fireEvent('data:tocolumns');
|
me.fireEvent('data:tocolumns');
|
||||||
});
|
});
|
||||||
// me.btnShow.on('click', function (b, e) {
|
me.btnShow.on('click', function (b, e) {
|
||||||
// me.fireEvent('data:show');
|
me.fireEvent('data:show');
|
||||||
// });
|
});
|
||||||
// me.btnHide.on('click', function (b, e) {
|
me.btnHide.on('click', function (b, e) {
|
||||||
// me.fireEvent('data:hide');
|
me.fireEvent('data:hide');
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -121,26 +121,25 @@ define([
|
||||||
_injectComponent('#slot-btn-text-column', this.btnTextToColumns);
|
_injectComponent('#slot-btn-text-column', this.btnTextToColumns);
|
||||||
this.lockedControls.push(this.btnTextToColumns);
|
this.lockedControls.push(this.btnTextToColumns);
|
||||||
|
|
||||||
// Show / Hide details, TODO: add to sdk
|
this.btnShow = new Common.UI.Button({
|
||||||
// this.btnShow = new Common.UI.Button({
|
cls : 'btn-toolbar',
|
||||||
// cls : 'btn-toolbar',
|
iconCls : 'btn-show-details',
|
||||||
// iconCls : 'btn-show-details',
|
style: 'padding-right: 2px;',
|
||||||
// style: 'padding-right: 2px;',
|
caption: this.capBtnTextShow,
|
||||||
// caption: this.capBtnTextShow,
|
lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth]
|
||||||
// lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth]
|
});
|
||||||
// });
|
_injectComponent('#slot-btn-show-details', this.btnShow);
|
||||||
// _injectComponent('#slot-btn-show-details', this.btnShow);
|
this.lockedControls.push(this.btnShow);
|
||||||
// this.lockedControls.push(this.btnShow);
|
|
||||||
//
|
this.btnHide = new Common.UI.Button({
|
||||||
// this.btnHide = new Common.UI.Button({
|
cls : 'btn-toolbar',
|
||||||
// cls : 'btn-toolbar',
|
iconCls : 'btn-hide-details',
|
||||||
// iconCls : 'btn-hide-details',
|
style: 'padding-right: 2px;',
|
||||||
// style: 'padding-right: 2px;',
|
caption: this.capBtnTextHide,
|
||||||
// caption: this.capBtnTextHide,
|
lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth]
|
||||||
// lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth]
|
});
|
||||||
// });
|
_injectComponent('#slot-btn-hide-details', this.btnHide);
|
||||||
// _injectComponent('#slot-btn-hide-details', this.btnHide);
|
this.lockedControls.push(this.btnHide);
|
||||||
// this.lockedControls.push(this.btnHide);
|
|
||||||
|
|
||||||
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
|
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
|
||||||
},
|
},
|
||||||
|
|
|
@ -161,6 +161,8 @@
|
||||||
.toolbar-btn-icon(rotate-270, 90, @toolbar-icon-size);
|
.toolbar-btn-icon(rotate-270, 90, @toolbar-icon-size);
|
||||||
.toolbar-btn-icon(flip-hor, 91, @toolbar-icon-size);
|
.toolbar-btn-icon(flip-hor, 91, @toolbar-icon-size);
|
||||||
.toolbar-btn-icon(flip-vert, 92, @toolbar-icon-size);
|
.toolbar-btn-icon(flip-vert, 92, @toolbar-icon-size);
|
||||||
|
.toolbar-btn-icon(btn-show-details, 73, @toolbar-icon-size);
|
||||||
|
.toolbar-btn-icon(btn-hide-details, 73, @toolbar-icon-size);
|
||||||
|
|
||||||
@menu-icon-size: 22px;
|
@menu-icon-size: 22px;
|
||||||
.menu-btn-icon(mnu-align-center, 0, @menu-icon-size);
|
.menu-btn-icon(mnu-align-center, 0, @menu-icon-size);
|
||||||
|
|
Loading…
Reference in a new issue