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