2014-12-04 16 views
2

我使用sencha -sdk ./ext-5.0.1生成MyApp ./MyApp來獲取新的應用程序。 並運行sencha應用程序手錶, 開發工具Netbeans 8.02,帶有Netbeans連接器的Google Chrome。 然後,我創建了一個與GridPanel中4個數據行,並將其添加在Main.jsEXTJS 5:爲什麼Ext.grid.Panel沒有StripRows效果,將主題從Neptune更改爲crisp

Ext.define('MyApp.view.grid.GroupsList', { 
    extend: 'Ext.grid.GridPanel', 
    .... 

即使我不設置stripRows爲真,我仍然獲得了stripRows效果。 我想改變而改變的主題app.json文件

"theme": "ext-theme-neptune", to "theme": "ext-theme-crisp", 

谷歌Chrome的自動更新2〜3次,那麼主題改變,但沒有更多的stripRows。 我在Gridpanel的定義中添加了「stripRows:true」或「viewConfig:{stripRows:true}」,沒有任何效果。 當我將app.json文件改回'neptune'時,stripRows回來了。 我測試了更多的主題: 「詠歎調」一切都OK。 「經典」一切都OK。

但是,如果我設置「stripRows:false」或「viewConfig:{stripRows:false}」,stripRows總是在那裏。

回答

4

正確屬性是

viewConfig: { 
    stripeRows: true 
}, 

Ë行沒有stripRows。

海王星主題默認打開條紋行,crips不是。 這就是爲什麼你讓他們在海王星雖然使用錯誤的財產。

相關問題