var fileGrid = new Ext.grid.GridPanel({
title:'上传文件列表',
height:150,
autoScroll:true,
frame:true,
columns:[
new Ext.grid.RowNumberer(),
{header:'文件名',dataIndex:'fileName'}
],
store:new Ext.data.SimpleStore({
fields:[
{name:'fileName'}
],
data:[
['大世界英语'],
['大学语文'],
['离散数学']
]
})
});extjs之simpleStore
最新推荐文章于 2020-12-28 20:43:47 发布
本文介绍如何利用Ext.js框架创建一个动态文件列表展示组件。该组件具备自滚动功能,并在一个固定高度的面板中显示文件名等信息。通过SimpleStore存储示例数据,包括'大世界英语'、'大学语文'及'离散数学'等文件。
8509

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



