Instantly share code, notes, and snippets.
amitkumarRoy
/ lightningNavigationjs
Last active
July 24, 2018 06:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ({ | |
| handleClick: function(cmp, event, helper) { | |
| var navService = cmp.find("navService"); | |
| var pageReference = { | |
| "type": "standard__component", | |
| "attributes": { | |
| "componentName": "c__WebinarOverride" | |
| }, | |
| "state": { | |
| 'message':'This is the target page' |
amitkumarRoy
/ lightningNavigationcmp
Created
July 19, 2018 08:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes"> | |
| <lightning:navigation aura:id="navService"/> | |
| <lightning:button label="Navigate" onclick="{!c.handleClick}"/> | |
| </aura:component> |
amitkumarRoy
/ lightningInsertImageButton
Created
July 19, 2018 06:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <aura:component> | |
| <lightning:inputRichText value="HELLO"> | |
| <lightning:insertImageButton/> | |
| </lightning:inputRichText> | |
| </aura:component> |
NewerOlder