bootstrap-application-wizard
bootstrap-application-wizard copied to clipboard
Better customization for buttons
Currently you specify the next, previous, submit, etc button text in the options when initializing a wizard. However it'd be ideal if you could instead specify the inner html, this way you can also include icons for the buttons.
Also it'd be useful if each card could specify what their own next button should look like.
Let me know if you guys agree with these features. I'm willing to implement them.
Apologies for not replying sooner. I think what you're suggesting makes sense and is a good idea. I say go for it...here are some thoughts on how you might implement it:
Add a "default_buttons" attribute to the Wizard class. This will store information on what the buttons will look like by default... things like color, text/html, etc.
Add a "custom_buttons" attribute to the WizardCard class. Find where cards are changed from one to the next and test for that "custom_buttons" attribute. If it exists, have the wizard use those button attributes, if not, use the "default_buttons" attribute.