[DE] Chart settings: set button icon
This commit is contained in:
parent
f4aee180e9
commit
a939187601
|
@ -136,17 +136,17 @@ define([
|
||||||
|
|
||||||
value = props.get_SeveralChartTypes();
|
value = props.get_SeveralChartTypes();
|
||||||
if (this._state.SeveralCharts && value) {
|
if (this._state.SeveralCharts && value) {
|
||||||
this.btnChartType.setIconCls('');
|
// this.btnChartType.setIconCls('');
|
||||||
this._state.ChartType = null;
|
this._state.ChartType = null;
|
||||||
} else {
|
} else {
|
||||||
var type = this.chartProps.getType();
|
var type = this.chartProps.getType();
|
||||||
if (this._state.ChartType !== type) {
|
if (this._state.ChartType !== type) {
|
||||||
var record = this.mnuChartTypePicker.store.findWhere({type: type});
|
var record = this.mnuChartTypePicker.store.findWhere({type: type});
|
||||||
this.mnuChartTypePicker.selectRecord(record, true);
|
this.mnuChartTypePicker.selectRecord(record, true);
|
||||||
if (record) {
|
// if (record) {
|
||||||
this.btnChartType.setIconCls('item-chartlist ' + record.get('iconCls'));
|
// this.btnChartType.setIconCls('item-chartlist ' + record.get('iconCls'));
|
||||||
} else
|
// } else
|
||||||
this.btnChartType.setIconCls('');
|
// this.btnChartType.setIconCls('');
|
||||||
this.updateChartStyles(this.api.asc_getChartPreviews(type));
|
this.updateChartStyles(this.api.asc_getChartPreviews(type));
|
||||||
this._state.ChartType = type;
|
this._state.ChartType = type;
|
||||||
}
|
}
|
||||||
|
@ -248,7 +248,7 @@ define([
|
||||||
|
|
||||||
this.btnChartType = new Common.UI.Button({
|
this.btnChartType = new Common.UI.Button({
|
||||||
cls : 'btn-large-dataview',
|
cls : 'btn-large-dataview',
|
||||||
iconCls : 'item-chartlist bar-normal',
|
iconCls : 'svgicon chart-column-normal',
|
||||||
menu : new Common.UI.Menu({
|
menu : new Common.UI.Menu({
|
||||||
style: 'width: 435px; padding-top: 12px;',
|
style: 'width: 435px; padding-top: 12px;',
|
||||||
items: [
|
items: [
|
||||||
|
@ -386,7 +386,7 @@ define([
|
||||||
rawData = record;
|
rawData = record;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.btnChartType.setIconCls('item-chartlist ' + rawData.iconCls);
|
// this.btnChartType.setIconCls('item-chartlist ' + rawData.iconCls);
|
||||||
this._state.ChartType = -1;
|
this._state.ChartType = -1;
|
||||||
|
|
||||||
if (this.api && !this._noApply && this.chartProps) {
|
if (this.api && !this._noApply && this.chartProps) {
|
||||||
|
|
Loading…
Reference in a new issue