mardi 9 mai 2017

AngularJS : display image instead of checkbox

i want to display my checkboxes as follows : Displayed checkboxes

The "+" should be displayed if the checkbox is not checked while the "-" should be displayed when it is checked.

I have the following code for now :

<input type="checkbox"
       ng-checked="isDrinkInService(drink.Id)"
       ng-click="addOrDeleteDrink(drink)" />

I have no idea how to change it, for now i have this : Simple checkboxes

Can anyone help me?




Aucun commentaire:

Enregistrer un commentaire