Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to select element in DataRepeater ? #1483

Open
ghost opened this issue Jun 20, 2018 · 1 comment
Open

How to select element in DataRepeater ? #1483

ghost opened this issue Jun 20, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 20, 2018

I have data retrieved via ajax. I am trying to select element of DataRepeater using Spotlight without any luck.

 create: function () {
        this.inherited(arguments);
        var self = this;
        setTimeout(function () {
            Spotlight.setPointerMode(false);
            Spotlight.spot(self.$.repeater.control);
        }, 2000);
    }

Here an example :
http://jsfiddle.net/8uvJE/86/
How to select element of collection in Datarepeater (for remote control device)?

@webOS101
Copy link
Member

webOS101 commented Jun 20, 2018

If you want spotlight integration then you should look at the Moonstone versions of those components. If you want to work with Spotlight without moonstone, you'll have to do a lot more work. You need to make sure your components are spottable (See docs) and you'll need to define CSS classes to describe what the appearance should be like when spotted. There's a lot of information on Spotlight here:

http://enyojs.com/docs/latest/developer-guide/support-modules/spotlight.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant