forked from fanruan/fineui
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.
39 lines
1.0 KiB
39 lines
1.0 KiB
8 years ago
|
/**
|
||
|
*
|
||
|
* 表格
|
||
|
*
|
||
|
* Created by GUY on 2015/9/22.
|
||
|
* @class BI.PageTableCell
|
||
|
* @extends BI.Single
|
||
|
*/
|
||
|
BI.PageTableCell = BI.inherit(BI.Widget, {
|
||
|
_defaultConfig: function () {
|
||
|
return BI.extend(BI.PageTableCell.superclass._defaultConfig.apply(this, arguments), {
|
||
|
baseCls: "bi-page-table-cell",
|
||
|
text: "",
|
||
|
title: ""
|
||
|
})
|
||
|
},
|
||
|
|
||
|
_init: function () {
|
||
|
BI.PageTableCell.superclass._init.apply(this, arguments);
|
||
|
var label = BI.createWidget({
|
||
|
type: "bi.label",
|
||
|
element: this,
|
||
|
textAlign: "left",
|
||
|
whiteSpace: "nowrap",
|
||
|
height: this.options.height,
|
||
|
text: this.options.text,
|
||
|
title: this.options.title,
|
||
|
value: this.options.value,
|
||
|
lgap: 5,
|
||
|
rgap: 5
|
||
|
});
|
||
|
|
||
|
if (BI.isNotNull(this.options.styles) && BI.isObject(this.options.styles)) {
|
||
|
this.element.css(this.options.styles);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
$.shortcut("bi.page_table_cell", BI.PageTableCell);
|