bootstrap-application-wizard icon indicating copy to clipboard operation
bootstrap-application-wizard copied to clipboard

Better customization for buttons

Open yedi opened this issue 12 years ago • 1 comments

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.

yedi avatar Feb 21 '13 01:02 yedi

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.

amoffat avatar Feb 26 '13 21:02 amoffat