|
根据例子代码 var parentNode = this.getElementByXid("content1");
var option = {
parentNode : parentNode,
//grid的属性,设计时有的属性都可以设置
data: "orgData",
width: '100%',
height:'auto',
// 列定义
colModel : [{width:"300",name:"sName",xid:"column1" },{width:"200",name:"sCode",xid:"column2"}]
};
new Grid(option);
照这样的方式运行后 查询源码是
<table xid="C78EA1D908300001D7EEBB201EAB1F11" component="$model/UI2/system/components/justep/grid/grid" class="cBZfARr" data-bind="component:{name:'$model/UI2/system/components/justep/grid/grid'}" __cid="cBZfARr"></table>
界面没有任何东西显示,不知道少设置什么东西 |
|