/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
core/templates/components/button-directives/primary-button.component.html
16 строк
443 B
Vir-8
Fix part of #19552: Rework primary button component (#19676)
21 фев 2024, 18:47
Не верифицирован
21 фев 2024, 18:47
ad6f994
Код
Авторство
О чём код?
<a *ngIf="!componentIsButton" class="primary-button btn" role="button" [ngClass]="customClasses" [href]="getButtonHref()" [target]="getTarget()" (click)="handleButtonClick($event)"> {{ buttonText }} </a> <button *ngIf="componentIsButton" type="submit" class="primary-button btn" [ngClass]="customClasses" [disabled]="disabled" (click)="handleButtonClick($event)"> {{ buttonText }} </button>