aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/forms/peertube-checkbox.component.html
blob: 1c0114d970e757f85a025867825c4c7d142d7acc (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                  
                                     
                                                                                                                            

                                                               
                                                                                   



                                                                     

          




                                                                                     
      
<div class="root">
  <label class="form-group-checkbox">
    <input type="checkbox" [(ngModel)]="checked" (ngModelChange)="onModelChange()" [id]="inputName" [disabled]="disabled" />
    <span role="checkbox" [attr.aria-checked]="checked"></span>
    <span *ngIf="labelText">{{ labelText }}</span>
    <span *ngIf="!labelText && labelInnerHTML" [innerHTML]="labelInnerHTML"></span>

    <span *ngIf="labelTemplate">
      <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
    </span>
  </label>

  <my-help *ngIf="helpTemplate" [tooltipPlacement]="helpPlacement" helpType="custom">
    <ng-template ptTemplate="customHtml">
      <ng-template *ngTemplateOutlet="helpTemplate"></ng-template>
    </ng-template>
  </my-help>
</div>