You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
882 B
37 lines
882 B
8 years ago
|
/**
|
||
|
* guy a元素
|
||
|
* @class BI.Link
|
||
|
* @extends BI.Text
|
||
|
*/
|
||
|
BI.Link = BI.inherit(BI.Label, {
|
||
|
_defaultConfig: function() {
|
||
|
var conf = BI.Link.superclass._defaultConfig.apply(this, arguments);
|
||
|
return BI.extend(conf, {
|
||
|
baseCls: (conf.baseCls || "") + " bi-link",
|
||
|
href: "",
|
||
|
target: "_blank"
|
||
|
})
|
||
|
},
|
||
|
|
||
|
_createJson: function(){
|
||
|
var o = this.options;
|
||
|
return {
|
||
|
type:"bi.a",
|
||
|
textAlign: o.textAlign,
|
||
|
whiteSpace: o.whiteSpace,
|
||
|
lineHeight: o.textHeight,
|
||
|
text: o.text,
|
||
|
keyword: o.keyword,
|
||
|
value: o.value,
|
||
|
py: o.py,
|
||
|
href: o.href,
|
||
|
target: o.target
|
||
|
};
|
||
|
},
|
||
|
|
||
|
_init : function() {
|
||
|
BI.Link.superclass._init.apply(this, arguments);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
$.shortcut("bi.link", BI.Link);
|