一旦網格被渲染,我如何將焦點設置爲第一項。我遇到了一個問題,當網格更新(集合更改)時,整個應用程序都會失去焦點。在網格列表中的第一項上設置默認焦點
我正在使用月光石圖書館。
{
kind: "ameba.DataGridList", name: "gridList", fit: true, spacing: 20, minWidth: 300, minHeight: 270, spotlight : 'container',
scrollerOptions:
{
kind: "moon.Scroller", vertical:"scroll", horizontal: "hidden", spotlightPagingControls: true
},
components: [
{kind : "custom.GridItemControl", spotlight: true}
]
}
您正在使用哪個Enyo的版本? – Pre101
@ Pre101 2.4.0-pre.2 – Fabii