akveo / akveo/blur-admin

Switch Bootstrap

Aperta
#184 3 commenti 1 reazione 0 assegnatari Vedi su GitHub
bug
Lingua principale
JavaScript
Stelle
11.3k
Fork
3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The directive Switch creates the bootstrap switch once the page is loaded.

But if you try to change the switch ngModel after loading the DOM, the button state (on or off) is not changed. (E.g. Loading server data).

It is necessary to load the plugin again?
like this:

```
var input = $(elem).find('input');
input.bootstrapSwitch({
size: 'small',
onColor: attr.color
});
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.