diff --git a/docs/src/pages/components/MultiSelect.svx b/docs/src/pages/components/MultiSelect.svx index e7274294..85a429c7 100644 --- a/docs/src/pages/components/MultiSelect.svx +++ b/docs/src/pages/components/MultiSelect.svx @@ -10,7 +10,7 @@ By default, items will be ordered alphabetically based on the `item.text` value. ### No alphabetical ordering @@ -20,7 +20,32 @@ To prevent alphabetical item ordering, pass an empty function to the `sortItem` + +### Initial selected items + +To select (or bind) items, pass an array of item ids to `selectedIds`. + + + + + +### Format item display text + +Use the `itemToString` prop to format the display of individual items. + + { + return item.text + ' (' + item.id +')' +}} titleText="Contact" label="Select contact methods..." + items="{[{id: "0", text: "Slack"}, + {id: "1", text: "Email"}, + {id: "2", text: "Fax"}]}" sortItem="{() => {}}" />