Vuesax: Add support for vue-router to vs-button

Created on 8 Sep 2018  路  6Comments  路  Source: lusaxweb/vuesax

Is your feature request related to a problem? Please describe.
The Topbar component uses vs-button as a navigation link, but vs-button doesn't work with vue-router.

Describe the solution you'd like
Add support for vue-router to vs-button.

Describe alternatives you've considered
Wrapping router-link around vs-button works, but breaks original styling.

Additional context
None

enhancement

All 6 comments

The component will be updated completely to do so I add this functionality, thank you very much for the contribution

@luisDanielRoviraContreras did you already implement this feature?

If you are right, it has already been implemented, thank you very much for advising and the contribution you are giving us.

You misunderstood @emanuelmutschlechner, he asked you if it's done..
I'm front of the problem currently.. By passing a button in a vs-navbar-item component as this :

<router-link to="/path" tag="vs-button" type="gradient" vs-icon="edit"></router-link>

... it's working but vs-icon prop seems to not be taken..

Could you try this? the property to be added to the case of using router-link

<vs-button to="/path" color="primary" vs-type="gradient" vs-icon="edit">Primary</vs-button>

Yes, it's good, I have see this prop just few minutes after posting my comment :P

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grali picture grali  路  4Comments

leah-cc picture leah-cc  路  3Comments

webafra picture webafra  路  3Comments

mjmnagy picture mjmnagy  路  3Comments

CaptainCannabis picture CaptainCannabis  路  3Comments