jeudi 28 septembre 2017

Send action to 'parent' component from child component

i wanted to ask, if sending action from component that is used inside another components template is possible.

So we have component1 used on /new page:



And in it's template i'm using



And in Component2 template i have:

<button action="add">

So now i want to send "add" action through component2's controller into component1's controller.

As far as i know sendAction() will ignore component1 and will go straight to controller. I also tried using targetObject on component2 but i think it's deprecated.

Is it possible without any hacks?




Aucun commentaire:

Enregistrer un commentaire