var temp=Ext.create('Ext.grid.Panel', {
title: title.substring(0,10),
iconCls: 'icon-grid-list',
id:id,
forceFit: true,
region : 'center',
store: repStore,
columnLines:true,
closable:true,
columns: [{dataIndex:'usernam',text:'姓名',align:'center'},{dataIndex:'itemtypename',text:'类型',align:'center'},
{dataIndex:'itemcontent',text:'内容',width:500,renderer: function(value, meta, record) {
meta.style = 'overflow:auto;padding: 3px 6px;text-overflow: ellipsis;white-space: nowrap;white-space:normal;line-height:20px;';
return value;
}},{dataIndex:'itemstaname',text:'状态',align:'center'}]
title: title.substring(0,10),
iconCls: 'icon-grid-list',
id:id,
forceFit: true,
region : 'center',
store: repStore,
columnLines:true,
closable:true,
columns: [{dataIndex:'usernam',text:'姓名',align:'center'},{dataIndex:'itemtypename',text:'类型',align:'center'},
{dataIndex:'itemcontent',text:'内容',width:500,renderer: function(value, meta, record) {
meta.style = 'overflow:auto;padding: 3px 6px;text-overflow: ellipsis;white-space: nowrap;white-space:normal;line-height:20px;';
return value;
}},{dataIndex:'itemstaname',text:'状态',align:'center'}]
});
本文介绍了一个使用ExtJS创建网格面板的具体配置实例。该面板包含标题、图标类、ID、强制适配、区域设置、存储配置及多个列定义等属性。列定义中包含了姓名、类型、内容和状态等字段,并对内容列进行了自定义样式设置。
1万+

被折叠的 条评论
为什么被折叠?



