Created
April 24, 2020 23:20
-
-
Save lucasvalhos/2a722848fab34cfa9a417906b1e7a6b1 to your computer and use it in GitHub Desktop.
LWC - Como abrir uma VisualForce em uma nova janela
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
<lightning-button label="Open Visual Force" onclick={openVisualForce}></lightning-button> |
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
openVisualForce(event){ | |
window.open(`https://${location.hostname}/apex/VisualForceName?c=${this.paramId}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment