-
Notifications
You must be signed in to change notification settings - Fork 244
Custom buttons #27
Comments
Indeed there is no way to add extra buttons near the current ones. I might add some additional slots, but don't want to add to many. Do you have any other idea ? |
Keep the slots for the buttons, but introduce a 'left' and 'right' slots that comes before and after the 'previous' and 'next' buttons. |
@exnihilo-creatio I actually don't want to add more slots for some limited use cases. <vue-form-wizard :hide-buttons="true">
<div slot="footer" scope="props">
<button @click="props.prev()">Prev</button>
<button>Cancel</button>
<button @click="props.next()">Next</button>
<button>Cancel</button>
</div>
</vue-form-wizard> And you can customize it how you want in terms of looks |
I will try to do this today |
@exnihilo-creatio Sorry for the long delay. I was on a vacation. https://jsfiddle.net/bt5dhqtf/696/ Available prop methods/objects
This is not published to npm yet! |
Released 0.6.2 https://github.com/cristijora/vue-form-wizard/releases/tag/v0.6.2 |
I just found this component and was able to successfully use it (thanks for the nice work). However, the current implementation of footer does not allow to reuse the existing buttons and functionality while adding a new button such as a 'cancel' button. Instead one has to redefine the complete footer section and behavior. From what I understand a 'slot' is only meant to define either the default content as provided by the plugin, or as alternative provide your own custom output. Combining the two is not the intended behavior. Perhaps an additional (empty) named slot can be added for custom buttons. Adding a cancel button would then be as simple as providing content for this named slot and still use the original footer buttons. |
I just want to add a simple cancel button on the first step |
@vxzry See this updated example. It was a bug in the code. A wrong event was fired when Released 0.6.4 |
@pvmeerbe According to your suggestion, I added 2 slots for custom buttons. Also, all button slots can be used both as simple or scoped slots |
how can i keep active background color of bullet step after i pass the step?? |
I am currently using the form wizard in a modal and trying to conform to material design guidelines. I would like to have a 'Cancel' button next to the 'next' and 'finish' button. However, there is currently no control on placing extra buttons next to the default ones.
The text was updated successfully, but these errors were encountered: