Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ストアのいくつかの要素を含む、煎茶のネストされたリストがあります。各要素を個別にカスタマイズする必要があるため、それぞれにカスタム ID を設定する必要があります。sencha touch 2 でそれを達成できますか?
最も簡単な方法は、ストアで一意の ID を生成/設定し、itemTpl を使用して ID をレンダリングすることです。
itemTpl: "<div id =\"{id}\" class=\"list-item-title\">{name}</div>"