marko-js-archive / marko-widgets

[LEGACY] Module to support binding of behavior to rendered UI components rendered on the server or client
http://v3.markojs.com/docs/marko-widgets/
MIT License
142 stars 40 forks source link

Getting the nested widget instance #168

Open swathip88 opened 7 years ago

swathip88 commented 7 years ago

Hi, I am writing to ask if we have any global API to get the widget instance given the id of the widget, even when the widget is deeply nested. I have used 'getWidget' but that works only when accessed by the parent widget to get child instance.

Example: When I want to get 'b12' widget instance using its Id.

Top layer

a --a1 ----a11 ----a12 b --b1 ----b11 ----b12

Thanks, Swathi