【问题标题】:Sencha touch 2 listitem itemtap not workingSencha touch 2 listitem itemtap 不工作
【发布时间】:2012-12-25 23:08:23
【问题描述】:

我使用 Ext.List 和 ListItem 组件进行列表。问题是,我不能再使用 itemtap 事件了。我找到了为什么它不起作用。 Itemtap 事件仅在 list-item-body 中触发,但是当我在 listitem 结构中添加一些组件时,它们不会呈现到链接 list-item-body。所以这些组件,没有指定任何点击事件。但是我需要 itemtap 工作所有的列表项。

可以找到类似的问题there

如有任何帮助,将不胜感激。

【问题讨论】:

    标签: list sencha-touch-2


    【解决方案1】:

    为我的列表项中的每个组件提供“x-list-item-body” cls 可以解决问题。例如,

    listItemLikeCount: {
        cls: 'x-list-item-body likeCount'
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-03
      • 2012-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多