Skip to content

Commit 5a7a91b

Browse files
authored
Merge pull request #547 from siddharth-vaghasia/patch-3
Updating documenation for callback method
2 parents 83c479b + 84b9c81 commit 5a7a91b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/documentation/docs/controls/ComboBoxListItemPicker.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,8 @@ import { ComboBoxListItemPicker } from '@pnp/spfx-controls-react/lib/ListItemPic
6161
- The `onSelectedItem` change event returns the list items selected and can be implemented as follows:
6262

6363
```TypeScript
64-
private onSelectedItem(data: { key: string; name: string }[]) {
65-
for (const item of data) {
66-
console.log(`Item value: ${item.key}`);
67-
console.log(`Item text: ${item.name}`);
68-
}
64+
private onSelectedItem(items:[]) {
65+
console.log("selected items:", items);
6966
}
7067
```
7168
## Implementation

0 commit comments

Comments
 (0)