私は Sencha Touch 2 アプリケーションに取り組んでおり、http://podlipensky.com/post/2012/03/20/Sencha-Touch-2-ExtuxtouchRating.aspxの星評価ウィジェットを使用しています。
次のように構成されたリスト内の各アイテムの評価を表示したいと思います。
Ext.define('Schneehoehen.view.LoipenUebersicht', {
extend: 'Ext.navigation.View',
xtype: 'loipenuebersicht',
config: {
items: [{
xtype: 'list',
title: 'Loipen Übersicht',
itemTpl: '{label}', // I would like to show the widget next to the label
onItemDisclosure: true,
store: Ext.create('Schneehoehen.store.LoipenUebersichtStore')
}]
}
})
itemTpl 内に星評価ウィジェットを含める方法を考えています。
ウィジェットは、次のコードを使用して別のビューのフォーム内に表示されます。
new Ext.ux.touch.Rating({
itemsCount: 5,
label: 'Image less',
cls: 'x-imageless-rating',
itemCls: 'x-imageless-star',
itemHoverCls: 'x-imageless-hover'
})
前もって感謝します!ヨハネス