veronica2690 2015-05-21 03:48 采纳率: 100%
浏览 1707
已采纳

sencha touch 在NavigationView中怎么添加pullrefresh?

请问要把
plugins: [
  {
    xclass: 'Ext.plugin.ListPaging',
    autoPaging: true
  }
],
itemTpl: [
  '',
  '

{text}
'
],
这一段放到什么位置,我放到了navigationbar上面,然后一直报错Uncaught TypeError: Cannot read property 'getScroller' of undefined。

MVC结构,大概框架如下:
config:{
  navigationbar:{
  },
  items:[
    {
    },
    {
    }
  ]
}

  • 写回答

4条回答 默认 最新

  • veronica2690 2015-05-21 06:53
    关注

    加在itemTpl: []的上边。如下:
    config:{
      navigationbar:{
      },
      items:[
        {
        },
    plugins:[],
        itemTpl:[]
      ]
    }

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?