feature request: allow target _blank attribute to Link component
ibrunotome opened this issue · 0 comments
ibrunotome commented
- Laravel Version: 10.15.0
- PHP Version: 8.2
- Splade JS Version (npm): 1.4.15(axios@1.4.0)(vue@3.3.4)
- Splade PHP Version (composer): 1.4.15.1
- Dev environment (OS, Sail/Valet/etc): docker
Description:
It's great that I can use confirm dialogs and the away
attribute
<Link
away
confirm="Enter the danger zone..."
confirm-text="Are you sure?"
confirm-button="Yes, take me there!"
cancel-button="No, keep me save!"
href="/danger">
Danger Zone
</Link>
But I'm in a use case that I would need to redirect away with a target= "_blank"
Would be great also if with the target blank I would call a function with an @confirmed event for example:
<Link
away
target="_blank"
@confirmed="myFunctionToStoreSomeInfo"
confirm="Enter the danger zone..."
confirm-text="Are you sure?"
confirm-button="Yes, take me there!"
cancel-button="No, keep me save!"
href="/danger">
Danger Zone
</Link>