blob: a0026f224bb346d8159b8a36eb0a7b82426c71ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
export const template = `
<label class='sdc-radio-group__legend'>{{legend}}</label>
<div class='sdc-radio-group__radios {{direction}}'>
<div *ngFor="let item of options.items">
<div class="sdc-radio">
<label class="sdc-radio__animation-wrapper" SdcRippleClickAnimation [rippleClickDisabled]="disabled">
<input class="sdc-radio__input"
type="radio"
name="{{item.name}}"
value="{{item.value}}"
disabled="{{disabled || item.disabled || false}}"
(change)="onValueChanged(item.value)"
[(ngModel)]="value"
/>
<span class="sdc-radio__label">{{ item.label }}</span>
</label>
</div>
</div>
</div>
`;
|