separate external links - #43
Conversation
|
Thank you very much for the PR, I do appreciate the effort. In this case, I do not feel this update is needed, as you can launch an external link using the code mentioned in this comment. Please see below, I believe this will achieve what you're looking for. <template>
<vue-navigation-bar
:options="navbarOptions"
@vnb-item-clicked="vnbItemClicked"
/>
</template>
<script>
...
data () {
return {
navbarOptions: {
....,
menuOptionsLeft: [
{
type: "button",
text: "External Link",
isLinkAction: true
}
]
}
}
},
methods: {
vnbItemClicked(text) {
if (text === "External Link") {
window.open("put the link here", '_blank');
}
}
}
</script> |
|
Hello, thank you very much for responding, I understand, but sometimes I want to open the link in a tab without having to use javascript, in my case I had to do this, because there were people who opened several links to copy certain things, and using javascript forced them to person clicking. |
|
The issue is that it's difficult to please all use cases. The intention of this library is to satisfy the main use case as best as possible. Beyond that, I recommend forking the library. For example, even as a result of this PR, users cannot use this feature when Additionally, the props added in this PR do not mesh with the current way I think the best way to move forward in you case is to use the code I shared above, as it will accomplish what you need, and can be used both with and without the If that doesn't work, perhaps you can fork Again, thank you for the discussion. |
I needed one or more external links, and I had to include them in your great code