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>
| changeDetection | ChangeDetectionStrategy.Eager |
| HostDirectives |
ListItemSelectionControlDirective
Inputs : aria-label aria-labelledby
|
| host | { |
| providers |
)
|
| selector | c8y-list-item-radio, c8y-li-radio |
| standalone | true |
| templateUrl | ./list-item-radio.component.html |
<label class="c8y-radio">
<input
[attr.aria-label]="naming.ariaLabel"
[attr.aria-labelledby]="naming.ariaLabel ? null : naming.ariaLabelledBy"
type="radio"
#radio
[name]="name"
[checked]="selected"
(change)="change($event.target.checked); (false)"
[disabled]="disabled"
/>
<span></span>
</label>
<ng-content></ng-content>