Coder Social home page Coder Social logo

angular-material-steppers's People

Contributors

christophercr avatar marcosmoura avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular-material-steppers's Issues

Update docs (readme.md)

HI,

It would be great to have the readme file updated so it is easier to know how to implement this library. On top of that, more people can have a look on this library which I think is great due to being written in Typescript.

I'm thinking of contributing with it. What do you think? Do you have any ideas regarding how the structure of such doc would look like?

Provide method to get step metadata in md-steppers controller

Hi,

Currently, the md-step directive has this 3 attributes:

  • label
  • editable
  • optional

It could be really useful to expose a method in the $mdSteppers service from the md-steppers controller to get such metadata. I'm thinking in something like this:

$mdSteppers("myStepper").getStepMetadata(stepNumber);

This will return the metadata object: {label: ..., editable: ..., optional: ...}

This metadata is needed to implement the navigation buttons "Back" and "Next", you need to know whether the step is optional or not so you can allow the user to "skip" the step. Also you need to know whether the step is editable or not so you can prevent the user from going back to a "non-editable" step.

Otherwise, you need to create an array with the numbers of the Optional steps and another array with the numbers of Non-editable steps and keep them in sync with what you define in the elements in the template to provide such functionality.

md-editable attribute in <md-stepper> is not used

Hello,

I have discovered this library and I am trying it out. It is really nice!

However, I have noticed that there is an attribute md-editable which I guess is meant to provide the functionality as the Material Design spec defines. Digging a bit into the code, I realized such attribute is not used, is this something that is foreseen in a future release of this library?

In the md-steppers\template.js there is an ng-click="$mdSteppers.clickAction(stepNumber)" but in fact, the controller method accepts 2 params: this.clickAction = (stepNumber, editing) => { ...}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.