Skip to content

Instantly share code, notes, and snippets.

@lucasvalhos
Created April 24, 2020 23:20
Show Gist options
  • Save lucasvalhos/2a722848fab34cfa9a417906b1e7a6b1 to your computer and use it in GitHub Desktop.
Save lucasvalhos/2a722848fab34cfa9a417906b1e7a6b1 to your computer and use it in GitHub Desktop.
LWC - Como abrir uma VisualForce em uma nova janela
<lightning-button label="Open Visual Force" onclick={openVisualForce}></lightning-button>
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