core/list-group/list-item-checkbox.component.ts
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>
| host | { |
| providers |
)
|
| selector | c8y-list-item-checkbox, c8y-li-checkbox |
| standalone | true |
| imports | |
| templateUrl | ./list-item-checkbox.component.html |
<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>