troch / angular-multi-step-form

An angular module for creating multi step forms / wizards
http://troch.github.io/angular-multi-step-form
ISC License
144 stars 44 forks source link

Support nav pills #5

Closed joerno closed 9 years ago

joerno commented 9 years ago

Hello,

would be nice to have the steps on top like here: http://www.bootply.com/sethfam/Ol5FB9IfJF (next to the navigation buttons like it is)

regards

troch commented 9 years ago

Hi @joerno, you can do that no problem. You are fully in control of the markup you use for your steps and for what you put before and after your step container. So there is nothing stopping you re-using the same markup and stylesheet used in that example.

joerno commented 9 years ago

Hi Thomas, thanks a lot for your answer. Do you have an example, how to add the steps and make them clickable to switch between them?

troch commented 9 years ago

You configure your steps like you would configure your views using ngRoute or ui-router: you specify a template, a controller, etc...: https://github.com/troch/angular-multi-step-form/blob/master/docs/configuring-steps.md

You need to use two provided directive: multiStepContainer and stepContainer. stepContainer has to be inside multiStepContainer and you can add a footer and/or header around it no problem (see examples on website).

<multi-step-container steps="yourSteps">
    <!-- Here your list of steps -->
    <step-container></step-container>
</multi-step-container>

When you create a multi step form, an instance is created. This instance has several methods (https://github.com/troch/angular-multi-step-form/blob/master/docs/multi-step-instance.md) that you can access two ways: