core/list-group/list-item-checkbox.component.ts

Description

A component to display checkboxes in a c8y-li. Use it with content projection. It can be used standalone or with an ngModel.

Example :
<c8y-li>
  <c8y-li-checkbox></c8y-li-checkbox>
</c8y-li>

Extends

CheckboxControlValueAccessor

Example

Metadata

Relationships

<label [ngClass]="displayAsSwitch ? 'c8y-switch c8y-switch--inline' : 'c8y-checkbox'">
  <input
    type="checkbox"
    class="form-control"
    [disabled]="disabled"
    [checked]="selected"
    (change)="select($event.target.checked); (false)"
    [indeterminate]="indeterminate"
  />
  <span></span>
  <span class="sr-only">event</span>
</label>
<ng-content></ng-content>

results matching ""

    No results matching ""