Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icon toggle #1292

Open
asarro opened this issue Nov 16, 2017 · 0 comments
Open

icon toggle #1292

asarro opened this issue Nov 16, 2017 · 0 comments

Comments

@asarro
Copy link

asarro commented Nov 16, 2017

<mdl-icon-toggle        
                              [(ngModel)]="question.isRated"
                             (click)="undoRating($event)"
</mdl-icon-toggle>

Hi, I'm trying to use the icon toggle but I wanted to add logic to it, that in certain scenarios if the toggle "is-check" when the user clicks on it, it will remain "is-check" unless certain logical conditions are met. I tried to bind it to a property but regardless of the value of the model(even if it's false) the toggle always goes on -> off and vice versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant