All Projects → eberlitz → Material Steppers

eberlitz / Material Steppers

Licence: mit
Angular Steppers directive for Angular Material

Projects that are alternatives of or similar to Material Steppers

Steppers
Steppers view library for Android, based on Google Material design guidelines
Stars: ✭ 786 (+727.37%)
Mutual labels:  material, stepper
Materialdesignextensions
Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
Stars: ✭ 516 (+443.16%)
Mutual labels:  material, stepper
Aybolit
Lightweight web components library built with LitElement.
Stars: ✭ 90 (-5.26%)
Mutual labels:  material
Cyanea
A theme engine for Android
Stars: ✭ 1,319 (+1288.42%)
Mutual labels:  material
Core
Onscreen virtual keyboard for Angular ≥ 5 (https://angular.io/) using Angular Material (https://material.angular.io/).
Stars: ✭ 92 (-3.16%)
Mutual labels:  material
Colors App
🎨 A PWA for copying values from popular color palettes. Supports HEX, RGB, and HSL formats.
Stars: ✭ 90 (-5.26%)
Mutual labels:  material
Materialdaterangepicker
A material Date Range Picker based on wdullaers MaterialDateTimePicker
Stars: ✭ 1,315 (+1284.21%)
Mutual labels:  material
Gaugeslider
Highly customizable GaugeSlider designed for a Smart Home app. Featured at Medium.
Stars: ✭ 89 (-6.32%)
Mutual labels:  material
Transformationlayout
🌠 Transform into a different view or activity using morphing animations.
Stars: ✭ 1,329 (+1298.95%)
Mutual labels:  material
Iconshowcase
Full-of-features, easy-to-customize, free and open source, Material Design dashboard for icon packs.
Stars: ✭ 91 (-4.21%)
Mutual labels:  material
Hexo Theme Material
a theme of hexo using the material design bootstrap
Stars: ✭ 93 (-2.11%)
Mutual labels:  material
Vue Stepper
👨🏻‍🚀 A renderless component for composing a Stepper
Stars: ✭ 90 (-5.26%)
Mutual labels:  stepper
Iridium
Iridium is an extension built to improve your experience with the new YouTube Material layout
Stars: ✭ 1,298 (+1266.32%)
Mutual labels:  material
Notion Icons 2.0
Create a more vibrant and modern workspace. Use Github Issues to request more Icons.
Stars: ✭ 93 (-2.11%)
Mutual labels:  material
A File Icon Idea
Atom File Icons plugin for IntelliJ IDEA products
Stars: ✭ 90 (-5.26%)
Mutual labels:  material
Angular Material Dashboard
Angular admin dashboard with material design
Stars: ✭ 1,321 (+1290.53%)
Mutual labels:  material
Flat Remix Gnome
Flat Remix is a GNOME Shell theme inspired by material design. It is mostly flat using a colorful palette with some shadows, highlights, and gradients for some depth.
Stars: ✭ 1,291 (+1258.95%)
Mutual labels:  material
Godot Hair Shader
My attempt at a hair shader in Godot
Stars: ✭ 91 (-4.21%)
Mutual labels:  material
Mangol
Maps created with Angular & OpenLayers using Material design
Stars: ✭ 92 (-3.16%)
Mutual labels:  material
Android Art
🎄 Android™ 设计相关的在线工具: 图标制作、配色方案、尺寸修改、截图加壳等,持续更新...
Stars: ✭ 95 (+0%)
Mutual labels:  material

material-steppers

Angular Steppers directive for Angular Material

Based on Material Steppers: https://www.google.com/design/spec/components/steppers.html#steppers-types-of-steppers

Demo

https://eberlitz.github.io/material-steppers/demo

Usage

using bower

bower install material-steppers --save

or using npm

npm install material-steppers --save

note: works with angular 1.4.9

Add to your module

angular.module('app', ['ngMaterial', 'mdSteppers']);

Write your html

<md-stepper id="stepper-demo" 
        md-mobile-step-text="$ctrl.isMobileStepText" 
        md-vertical="$ctrl.isVertical" 
        md-linear="$ctrl.isLinear"
        md-alternative="$ctrl.isAlternative">
        <md-step md-label="Select a campaign">
            <md-step-body>
                <p>Step content</p>
            </md-step-body>
            <md-step-actions>
                <md-button class="md-primary md-raised" ng-click="$ctrl.selectCampaign();">Continue</md-button>
                <md-button class="md-primary" ng-click="$ctrl.cancel();">Cancel</md-button>
            </md-step-actions>
        </md-step>
        <md-step md-label="Create an group">
            <md-step-body>
                <p>Step content</p>
            </md-step-body>
            <md-step-actions>
                <md-button class="md-primary md-raised" ng-click="$ctrl.nextStep();">Continue</md-button>
                <md-button class="md-primary" ng-click="$ctrl.previousStep();">Back</md-button>
            </md-step-actions>
        </md-step>
        <!-- Other steps if needed ... -->
    </md-stepper>

$mdStepper Service

Used to control a stepper by it's id. Example:

ver steppers = $mdStepper('stepper-demo');
steppers.next();

Detailed service operations bellow:

Method Description Returns
next() Complete the current step and move one to the next. Using this method on editable steps (in linear stepper) it will search by the next step without "completed" state to move. When invoked it dispatch the event onstepcomplete to the step element. boolean - True if move and false if not move (e.g. On the last step)
back() Move to the previous step without change the state of current step. Using this method in linear stepper it will check if previous step is editable to move. boolean - True if move and false if not move (e.g. On the first step)
skip() Move to the next step without change the state of current step. This method works only in optional steps. boolean - True if move and false if not move (e.g. On non-optional step)
goto(stepNumber: number) Move "active" to specified step id parameter. The id used as reference is the integer number shown on the label of each step (e.g. 2). boolean - True if move and false if not move (e.g. On id not found)
error(message: string) Defines the current step state to "error" and shows the message parameter on title message element.When invoked it dispatch the event onsteperror to the step element. {string} message The error message
clearError() Defines the current step state to "normal" and removes the message parameter on title message element. void
showFeedback(message?: string) Shows a feedback message and a loading indicador. void
clearFeedback() Removes the feedback. void

TODO

  • [x] Horizontal steppers
  • [x] Vertical steppers
  • [x] Linear steppers
  • [x] Non-linear steppers
  • [x] Alternative labels
  • [x] Optional steps
  • [ ] Editable steps
  • [x] Stepper feedback
  • Mobile steppers
    • [x] Mobile step text
    • [ ] Mobile step dots
    • [ ] Mobile step progress bar
  • [x] Correct apply styles (css) of the material design
  • [x] Embed SVG Icon assets
  • [ ] Create a better demo page with all options.

Remarks

License

The MIT License (MIT)

Copyright (c) 2016 Eduardo Eidelwein Berlitz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].