How to set spotlight item in repeater

Hello,
I have a repeater with many child item, i want to set spotlight 2th item, but i cannot set spotlight
{
                    name:"menuScroll",
                    kind:"moon.Scroller",
                    style:'height:655px;margin-top:155px!important;',
                    horizontal:'hidden',
                    components:[
                        {
                            kind:"Group",
                            onActivate:"groupChanged",
                            classes:"moon-4h menu-category",
                            name:'category',
                            //style:"margin-top:155px!important;",
                            components:[
                                {
                                    name:'categoryRepeater',
                                    kind:'enyo.Repeater',
                                    onSetupItem:'setupItem',
                                    components:[
                                        {
                                            name:"categoryItem",
                                            kind:"moon.SelectableItem",
                                            content:"Tìm kiếm",
                                            type:"search",
                                            classes:"category-menu-item"
                                        }

                                    ],
                                },
                            ]
                        },
                    ]
                },
after load repeater data i try to set 2th item spotlighth but not working
enyo.Spotlight.spot(this.$.categoryRepeater.getControls()[1])

i try set spotlight of active item in enyo.Group but also not working
enyo.Spotlight.spot(this.$.category.active)

How to set spotlight this. Thank you somuch.

Comments

Sign In or Register to comment.