Skip to content

icon toggle #1292

Open
Open
@asarro

Description

@asarro
<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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions