Assume that:
aura_components/mainview_widget // a tabs interface
aura_components/tab_widget
aura_components/A_widget
aura_components/B_imp1_widget
aura_components/B_imp2_widget
mainview_widget has children A_widget and multiple instances of tab_widget
tab_widget has children A and B ( either B_imp1_widget or B_imp2_widget)
My questions:
- How could A_widget get it's parent view object without knowing the component name? is there a cleaner way than "use jQuery parent() recursively and look for div with data-aura-widget attribute, get the backbone view object from the doc node "
- How could tab_widget notify only child components via emit/on without knowing component name?
- How could tab_widget notify a certain type of children regardless of the implementation name, e.g, notifying "B" instead of B_imp1, B_imp2 .
Assume that:
aura_components/mainview_widget // a tabs interface
aura_components/tab_widget
aura_components/A_widget
aura_components/B_imp1_widget
aura_components/B_imp2_widget
mainview_widget has children A_widget and multiple instances of tab_widget
tab_widget has children A and B ( either B_imp1_widget or B_imp2_widget)
My questions: