fineui是帆软报表和BI产品线所使用的前端框架。
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.
|
|
|
/**
|
|
|
|
*
|
|
|
|
* 表格
|
|
|
|
*
|
|
|
|
* Created by GUY on 2015/9/22.
|
|
|
|
* @class BI.TableCell
|
|
|
|
* @extends BI.Single
|
|
|
|
*/
|
|
|
|
BI.TableCell = BI.inherit(BI.Widget, {
|
|
|
|
_defaultConfig: function () {
|
|
|
|
return BI.extend(BI.TableCell.superclass._defaultConfig.apply(this, arguments), {
|
|
|
|
baseCls: "bi-table-cell",
|
|
|
|
textAlign: "left",
|
|
|
|
text: ""
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
_init: function () {
|
|
|
|
BI.TableCell.superclass._init.apply(this, arguments);
|
|
|
|
BI.createWidget({
|
|
|
|
type: "bi.label",
|
|
|
|
element: this,
|
|
|
|
whiteSpace: "nowrap",
|
|
|
|
textAlign: this.options.textAlign,
|
|
|
|
height: this.options.height,
|
|
|
|
text: this.options.text,
|
|
|
|
value: this.options.value,
|
|
|
|
lgap: 5
|
|
|
|
})
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$.shortcut("bi.table_cell", BI.TableCell);
|