LoginSignup
0
0

More than 3 years have passed since last update.

コンポーネントイベント

Last updated at Posted at 2020-03-20

1.自体通信
image.png
cmp:<aura:handler><aura:registerEvent>
js:cmp.getEvent("").fire()

2.子親通信
image.png
親cmp:<aura:handler>
子cmp:<aura:registerEvent>
子js:cmp.getEvent("").fire()

3.親子通信(下記のやり方で通信できません)
image.png
子cmp:<aura:handler>
親cmp:<aura:registerEvent>
親js:cmp.getEvent("").fire()

4.親子通信(下記のやり方で通信できる)
子cmp:<aura:method>
子controll.js:call:function (component, event, helper) {}
親controll.js:
var aaa = component.find("子aura:id");
aaa.call();

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0