Scenario:
I want to create a
List Button
which displays aLightning Component
.- The only way to implement this step is to use a
Visualforce Page
which uses aStandard Set Controller
, then useLightning Out
on that page.
- The only way to implement this step is to use a
I want this
Lightning Component
to include links which should open in a new tab.- The only way I can find to implement this step is to use
window.open
. - I tried out the
<lightning:workspaceApi>
, but it does nothing inLightning Out
. Nor does it fire any events I could listen for, as far as I can tell.
- The only way I can find to implement this step is to use
I read this post, which works well for a "supported" method of navigation in Lightning Out:
How to navigate in lightning out?
However, it does not mention any way to open links in a new tab.
Questions:
Is there a supported way to open a record view (or any page) in a new tab when using Lightning Out? Is there any problem with using window.open
, or any risks involved I should know about?