core/list-group/list-item-radio.component.ts
A component to display a radio button in a c8y-li. Use it with content projection. It can be used standalone or with an ngModel.
Example :<c8y-li>
<c8y-li-radio></c8y-li-radio>
</c8y-li>
| host | { |
| providers |
)
|
| selector | c8y-list-item-radio, c8y-li-radio |
| standalone | true |
| imports | |
| templateUrl | ./list-item-radio.component.html |
<label class="c8y-radio">
<input
#radio
id="event"
type="radio"
[name]="name"
[checked]="selected"
(change)="change($event.target.checked); (false)"
[disabled]="disabled"
/>
<span></span>
<span for="event" class="sr-only" translate>event</span>
</label>
<ng-content></ng-content>