All Projects → maiyaporn → Angular2 Wizard

maiyaporn / Angular2 Wizard

Angular2 - Form Wizard Component

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Angular2 Wizard

ng-toggle
Bootstrap-styled Angular Toggle Component
Stars: ✭ 14 (-88.43%)
Mutual labels:  angular2, bootstrap4
Cc
一个基于angular5.0.0+ng-bootstrap1.0.0-beta.8+bootstrap4.0.0-beta.2+scss的后台管理系统界面(没基础的同学请先自学基础,谢谢!)
Stars: ✭ 416 (+243.8%)
Mutual labels:  angular2, bootstrap4
Coreui Free Bootstrap Admin Template
CoreUI is free bootstrap admin template
Stars: ✭ 11,038 (+9022.31%)
Mutual labels:  angular2, bootstrap4
Paper Kit 2 Angular
Free Bootstrap 4 UI Kit for Angular 2+
Stars: ✭ 133 (+9.92%)
Mutual labels:  angular2, bootstrap4
Coreui Free Angular Admin Template
CoreUI Angular is free Angular 2+ admin template based on Bootstrap 4
Stars: ✭ 1,279 (+957.02%)
Mutual labels:  angular2, bootstrap4
Angular Material App
基于最新Angular 9框架与Material 2技术的web中后台前端应用框架。
Stars: ✭ 509 (+320.66%)
Mutual labels:  angular2, bootstrap4
Ngx Bootstrap Multiselect
Angular 9+ Dropdown Multiselect Bootstrap
Stars: ✭ 323 (+166.94%)
Mutual labels:  angular2, bootstrap4
Clever Bootstrap 4 Admin Template With Angularjs Angular 2 Support
Clever is Boostrap 4 Admin Template with Angular 2 and AngularJS support
Stars: ✭ 98 (-19.01%)
Mutual labels:  angular2, bootstrap4
Root Bootstrap 4 Admin Template With Angularjs Angular 2 Support
Root is Boostrap 4 Admin Template with Angular 2 and AngularJS support
Stars: ✭ 54 (-55.37%)
Mutual labels:  angular2, bootstrap4
Ngx Admin
Customizable admin dashboard template based on Angular 10+
Stars: ✭ 23,286 (+19144.63%)
Mutual labels:  angular2, bootstrap4
Angular Seed
Angular Seed App with Angular 5.0, ngrx/store 4, bootstrap 4, ngrx/effects, immutable.js
Stars: ✭ 87 (-28.1%)
Mutual labels:  angular2, bootstrap4
Angular Generic Table
A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
Stars: ✭ 100 (-17.36%)
Mutual labels:  angular2, bootstrap4
Blog
lizhonghui's blog
Stars: ✭ 109 (-9.92%)
Mutual labels:  angular2
Django Jinja Knockout
Django datatables and widgets, both AJAX and traditional. Display-only ModelForms. ModelForms / inline formsets with AJAX submit and validation. Works with Django templates.
Stars: ✭ 116 (-4.13%)
Mutual labels:  bootstrap4
Ng Packaged
An Angular library packaged by ng-packagr
Stars: ✭ 109 (-9.92%)
Mutual labels:  angular2
Angular Admin Lte
AdminLte for Angular 2
Stars: ✭ 109 (-9.92%)
Mutual labels:  angular2
Angular5 Example Shopping App
Angular 5 Example Shopping App + Angular Material + Responsive
Stars: ✭ 120 (-0.83%)
Mutual labels:  angular2
Startbootstrap Resume
Start Bootstrap is an open source library of free Bootstrap themes and templates. All of the free themes and templates on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 1,642 (+1257.02%)
Mutual labels:  bootstrap4
Lightning Admin Angular
A mobile first design of a responsive admin template built with angular and bootstrap
Stars: ✭ 107 (-11.57%)
Mutual labels:  bootstrap4
Ng Http Interceptor
Http Interceptor library for Angular
Stars: ✭ 108 (-10.74%)
Mutual labels:  angular2

angular2-wizard

npm version Build Status Code Climate Test Coverage

This is an Angular2 Form Wizard component. Just like any form wizard. You can define steps and control how each step works. You can enable/disable navigation button based on validity of the current step. Currently, the component only support basic functionality. More features will come later.

You can checkout the demo below and see how to use it in the next section.

Demo

https://maiyaporn.github.io/angular2-wizard-demo/

Dependencies

  • Angular2 (tested with 2.3.1)
  • Bootstrap 4

Installation

After installing the above dependencies, install angular2-wizard via:

$ npm install angular2-wizard --save

How to use the component

Once you have installed the library, you can import it in AppModule of your application:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';

// Import your library
import { FormWizardModule } from 'angular2-wizard';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    // Specify the library as an import
    FormWizardModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once your library is imported, you can use form-wizard and wizard-step components in your Angular application:

<form-wizard>
  <wizard-step [title]="'Step1'" [isValid]="emailForm.form.valid" (onNext)="onStep1Next($event)">
    <h1>Step1</h1>
    <form #emailForm="ngForm">
      <div class="form-group">
        <label for="exampleInputEmail1">Email address</label>
        <input type="email" class="form-control" id="exampleInputEmail1" name="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"
          [(ngModel)]="data.email" required>
        <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
      </div>
    </form>
  </wizard-step>
  <wizard-step [title]="'Step2'" (onNext)="onStep2Next($event)">
    <h1>Step2</h1>
  </wizard-step>
  <wizard-step [title]="'Step3'" (onNext)="onStep3Next($event)">
    <h1>Step3</h1>
  </wizard-step>
  <wizard-step [title]="'Step4'" (onComplete)="onComplete($event)">
    <div [ngSwitch]="isCompleted">
      <div *ngSwitchDefault>
        <h1>Step4</h1>
      </div>
      <div *ngSwitchCase="true">
        <h4>Thank you! You have completed all the steps.</h4>
      </div>
    </div>
  </wizard-step>
</form-wizard>

Document

https://github.com/maiyaporn/angular2-wizard/wiki

Development

To generate all *.js, *.js.map and *.d.ts files:

$ npm run tsc

To lint all *.ts files:

$ npm run lint

Improvement

  • [x] Click title to navigate
  • [x] Hide/Show navigation button
  • [ ] Disable visited steps after navigate to previous
  • [ ] Dynamically add/remove step

License

MIT © Maiyaporn Phanich

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].