Skip to content

Commit 9a82864

Browse files
committed
Add action
1 parent a3c75ee commit 9a82864

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/radio/radio.stories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ storiesOf("Radio", module).addDecorator(
1212
.addDecorator(withKnobs)
1313
.add("Basic", () => ({
1414
template: `
15-
<ibm-radio-group aria-label="radiogroup" [(ngModel)]="radio">
15+
<ibm-radio-group aria-label="radiogroup" [(ngModel)]="radio" (change)="onChange($event)">
1616
<ibm-radio *ngFor="let radio of manyRadios"
1717
[value]="radio.num"
1818
[disabled]="radio.disabled">{{radio.num}}
1919
</ibm-radio>
2020
</ibm-radio-group>
2121
`,
2222
props: {
23+
onChange: action("Radio change"),
2324
manyRadios: [
2425
{ num: "one", disabled: false },
2526
{ num: "two" },

0 commit comments

Comments
 (0)