/** * 预览表列 * * Created by GUY on 2015/12/25. * @class BI.PreviewTableCell * @extends BI.Widget */ BI.PreviewTableCell = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.PreviewTableCell.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-preview-table-cell", text: "" }); }, _init: function () { BI.PreviewTableCell.superclass._init.apply(this, arguments); var self = this, o = this.options; BI.createWidget({ type: "bi.label", element: this, textAlign: o.textAlign || "left", whiteSpace: o.whiteSpace || "normal", height: this.options.height, text: this.options.text, value: this.options.value, lgap: o.lgap, rgap: o.rgap, hgap: o.hgap || 5 }); } }); BI.shortcut("bi.preview_table_cell", BI.PreviewTableCell);