|
|
@ -111,35 +111,35 @@ BI.HalfIconButton = BI.inherit(BI.IconButton, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.HalfIconButton.EVENT_CHANGE = "HalfIconButton.EVENT_CHANGE"; |
|
|
|
BI.HalfIconButton.EVENT_CHANGE = "HalfIconButton.EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.half_icon_button", BI.HalfIconButton);/** |
|
|
|
BI.shortcut("bi.half_icon_button", BI.HalfIconButton);/** |
|
|
|
* 统一的trigger图标按钮 |
|
|
|
* 统一的trigger图标按钮 |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/16. |
|
|
|
* Created by GUY on 2015/9/16. |
|
|
|
* @class BI.TriggerIconButton |
|
|
|
* @class BI.TriggerIconButton |
|
|
|
* @extends BI.IconButton |
|
|
|
* @extends BI.IconButton |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.TriggerIconButton = BI.inherit(BI.IconButton, { |
|
|
|
BI.TriggerIconButton = BI.inherit(BI.IconButton, { |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
var conf = BI.TriggerIconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.TriggerIconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
return BI.extend(conf, { |
|
|
|
return BI.extend(conf, { |
|
|
|
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button", |
|
|
|
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button", |
|
|
|
extraCls: "pull-down-font" |
|
|
|
extraCls: "pull-down-font" |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.TriggerIconButton.superclass._init.apply(this, arguments); |
|
|
|
BI.TriggerIconButton.superclass._init.apply(this, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
doClick: function () { |
|
|
|
BI.TriggerIconButton.superclass.doClick.apply(this, arguments); |
|
|
|
BI.TriggerIconButton.superclass.doClick.apply(this, arguments); |
|
|
|
if (this.isValid()) { |
|
|
|
if (this.isValid()) { |
|
|
|
this.fireEvent(BI.TriggerIconButton.EVENT_CHANGE, this); |
|
|
|
this.fireEvent(BI.TriggerIconButton.EVENT_CHANGE, this); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TriggerIconButton.EVENT_CHANGE = "TriggerIconButton.EVENT_CHANGE"; |
|
|
|
BI.TriggerIconButton.EVENT_CHANGE = "TriggerIconButton.EVENT_CHANGE"; |
|
|
|
BI.shortcut("bi.trigger_icon_button", BI.TriggerIconButton);/** |
|
|
|
BI.shortcut("bi.trigger_icon_button", BI.TriggerIconButton);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* 复选框item |
|
|
|
* 复选框item |
|
|
|