Find component by name?

How can i find a component by its name?


  • edited January 2014
    The owner of the component can access it through the $ hash. So, a component named button would be available as this.$.button. If you're trying to access it from another kind, you probably shouldn't be since you'd be breaking encapsulation.
  • A find function might be nice, where one could call find on an Enyo object, and it would recursively check its ownership hierarchy. It would have to stay within it's own ownership hierarchy to be meaningful though. Maybe I'll build a POC
  • That should be pretty straightforward to create but I'd still argue that if you find you need it, your not doing something in the "enyo way."
Sign In or Register to comment.