From 84b9c81dfc6adb61c12e73c3160ffff65ea63294 Mon Sep 17 00:00:00 2001 From: Siddharth Vaghasia Date: Tue, 28 Apr 2020 10:38:37 +0530 Subject: [PATCH] Updating documenation for callback method Updating documentation on how to write a callback method to captured selected items. --- docs/documentation/docs/controls/ComboBoxListItemPicker.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/documentation/docs/controls/ComboBoxListItemPicker.md b/docs/documentation/docs/controls/ComboBoxListItemPicker.md index 9de18300a..c9887882c 100644 --- a/docs/documentation/docs/controls/ComboBoxListItemPicker.md +++ b/docs/documentation/docs/controls/ComboBoxListItemPicker.md @@ -61,11 +61,8 @@ import { ComboBoxListItemPicker } from '@pnp/spfx-controls-react/lib/ListItemPic - The `onSelectedItem` change event returns the list items selected and can be implemented as follows: ```TypeScript -private onSelectedItem(data: { key: string; name: string }[]) { - for (const item of data) { - console.log(`Item value: ${item.key}`); - console.log(`Item text: ${item.name}`); - } +private onSelectedItem(items:[]) { + console.log("selected items:", items); } ``` ## Implementation