Skip to main content
Tweeted twitter.com/StackSalesforce/status/764524908059688960
fixed two typos
Source Link
Mark Pond
  • 23.1k
  • 2
  • 60
  • 104

Is isit possible to listen to events fired by Lightning Experience?

As I understand the general idea behind aura/lightning is to be able to have components which can interact with eachothereach other. However, Salesforce's documentation seems to be lacking any information about interacting with native components which are delivered in the lightning experience.

Has any of you been able to create a component, included in a custom lightning experience record page, which listens for events from native components on this page? I have tried a few events so far in this fashion, but to no avail:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
    <aura:handler name="testEvent" event="force:save" action="{!c.handleSave}"/>
</aura:component>

Is is possible to listen to events fired by Lightning Experience?

As I understand the general idea behind aura/lightning is to be able to have components which can interact with eachother. However, Salesforce's documentation seems to be lacking any information about interacting with native components which are delivered in the lightning experience.

Has any of you been able to create a component, included in a custom lightning experience record page, which listens for events from native components on this page? I have tried a few events so far in this fashion, but to no avail:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
    <aura:handler name="testEvent" event="force:save" action="{!c.handleSave}"/>
</aura:component>

Is it possible to listen to events fired by Lightning Experience?

As I understand the general idea behind aura/lightning is to be able to have components which can interact with each other. However, Salesforce's documentation seems to be lacking any information about interacting with native components which are delivered in the lightning experience.

Has any of you been able to create a component, included in a custom lightning experience record page, which listens for events from native components on this page? I have tried a few events so far in this fashion, but to no avail:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
    <aura:handler name="testEvent" event="force:save" action="{!c.handleSave}"/>
</aura:component>
Source Link
Koen Faro
  • 773
  • 1
  • 4
  • 14

Is is possible to listen to events fired by Lightning Experience?

As I understand the general idea behind aura/lightning is to be able to have components which can interact with eachother. However, Salesforce's documentation seems to be lacking any information about interacting with native components which are delivered in the lightning experience.

Has any of you been able to create a component, included in a custom lightning experience record page, which listens for events from native components on this page? I have tried a few events so far in this fashion, but to no avail:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >
    <aura:handler name="testEvent" event="force:save" action="{!c.handleSave}"/>
</aura:component>