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

Description

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>

Implements

ControlValueAccessor

Example

Metadata

Relationships

<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>

results matching ""

    No results matching ""