私はグリッドビューアプリケーションを使用しています...私がしたいことは、特定のアイテムを呼び出すときに特定のページに移動することです。
アイテムを呼び出すときのコードは次のとおりです 。問題は、アイテムのインデックスを取得できないことです。 図は私が何を意味するかを説明してい ます http://www.flickr.com/photos/magedelgazzar/8409848728/in/photostream
_itemInvoked: function (args) {
var group = Data.groups.getAt(args.detail.itemIndex);
var item = Data.items.getAt(args.detail.itemIndex);
if (appView.value === appViewState.snapped) {
// If the page is snapped, the user invoked a group.
this.navigateToGroup(group.key);
} else {
// If the page is not snapped, the user invoked an item.
if ( item.index == 1 && group.index == 2 ) {
nav.navigate("../../nextPage.html", { item: Data.getItemReference(item) });
// nav.navigate("../../nextPage.html");
}
}
}
});