We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c75ee commit 9a82864Copy full SHA for 9a82864
src/radio/radio.stories.ts
@@ -12,14 +12,15 @@ storiesOf("Radio", module).addDecorator(
12
.addDecorator(withKnobs)
13
.add("Basic", () => ({
14
template: `
15
- <ibm-radio-group aria-label="radiogroup" [(ngModel)]="radio">
+ <ibm-radio-group aria-label="radiogroup" [(ngModel)]="radio" (change)="onChange($event)">
16
<ibm-radio *ngFor="let radio of manyRadios"
17
[value]="radio.num"
18
[disabled]="radio.disabled">{{radio.num}}
19
</ibm-radio>
20
</ibm-radio-group>
21
`,
22
props: {
23
+ onChange: action("Radio change"),
24
manyRadios: [
25
{ num: "one", disabled: false },
26
{ num: "two" },
0 commit comments