/
githubmirror
/
tabby
Обзор
Документация
Войти
/
githubmirror
/
tabby
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tabby-core/src/components/toggle.component.ts
20 строк
614 B
Eugene
bootstrap 5 WIP (#7891)
26 фев 2023, 22:42
Не верифицирован
26 фев 2023, 22:42
1e5cfd1
Код
Авторство
О чём код?
import { Component } from '@angular/core' import { NG_VALUE_ACCESSOR } from '@angular/forms' import { CheckboxComponent } from './checkbox.component' /** @hidden */ @Component({ selector: 'toggle', template: ` <div class="form-check form-switch"> <input type="checkbox" class="form-check-input" [(ngModel)]='model'> <label class="cform-check-label"></label> </div> `, styleUrls: ['./toggle.component.scss'], providers: [ { provide: NG_VALUE_ACCESSOR, useExisting: ToggleComponent, multi: true }, ], }) export class ToggleComponent extends CheckboxComponent { }