我使用sencha -sdk ./ext-5.0.1生成MyApp ./MyApp以获取新的应用程序。 并运行sencha app watch, 使用Netbeans连接器开发Tool Netbeans 8.02,Google Chrome。 然后我创建一个包含4条数据线的Gridpanel,并将其添加到Main.js
中Ext.define('MyApp.view.grid.GroupsList', {
extend: 'Ext.grid.GridPanel',
....
即使我没有将stripRows设置为true,我仍然会获得stripRows效果。 我想通过更改app.json文件来更改主题
"theme": "ext-theme-neptune", to "theme": "ext-theme-crisp",
谷歌浏览器自动刷新2或3次,然后主题更改,但没有更多的stripRows。 我在Gridpanel的定义中添加了“stripRows:true”或“viewConfig:{stripRows:true}”,没有任何效果。 当我将app.json文件更改回'neptune'时,stripRows又回来了。 我测试了更多主题: “咏叹调”一切都好。 “经典”一切都还可以。
但如果我设置“stripRows:false”或“viewConfig:{stripRows:false}”,则stripRows始终存在。
答案 0 :(得分:4)
正确的属性是
viewConfig: {
stripeRows: true
},
剥离 e 行不是stripRows。
海王星主题默认情况下打开条纹行,crips没有。 这就是为什么你在海王星中使用错误属性的原因。