1

Is it possible to catch events triggered by standard component? For example click even on tab for component like "The Featured Topics & Feeds component". Or on "Navigation Menu" component.

1

Goto https://<myDomain>.lightning.force.com/auradocs/reference.app

Click on Event

You can see many kinds of events that you can use here

Click on Force

You can see tab events and others:

enter image description here

  • Thanks, but I do know about tab events. But How to catch those events when event is triggered by Standard component, like those that I've mentioned?? I custom component I have access to .cmp file and can add controller method call on onclick event. But for standard component, provided by Salesforce there is no access to .cmp file and onclick event the same way. . . – hksl Aug 30 '17 at 13:20
  • I am not sure, try adding an event handler: <aura:handler event="force:tabFocused" action="{!c.tabFocusedAction}" /> – Itai Shmida Aug 30 '17 at 13:32
  • But in which .cmp file I can add it? There is no access to .cmp file for Standard component provided by Salesforce. I am a beginner in SF development. What I am missing? Thank you – hksl Aug 30 '17 at 13:51
  • I do not understand what you are trying to achieve. I though you wanted to listen to a standard event from your lightning component – Itai Shmida Aug 30 '17 at 16:38
  • Thank you for replying. I need to listen to any event in "Standard Component" provided by SF. SF provides me with "The Featured Topics & Feeds component". and "Navigation Menu" component, for example. When you create Community, these components are part of Napili template already. I need to catch events generated by these/similar components. And, it seems, there is No access to .cmp code of these "standard components". Am I correct? Is there way to catch events of those components? Many thanks – hksl Aug 30 '17 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.