SharedResourcePicker API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
SharedResourcePicker13 props1 callbacks0 methods
Props13
| Name | Type | Description |
|---|---|---|
resourcesRequired |
| Resources available for selection, with IDs and display metadata. |
selectedResourceIdsRequired |
| IDs of the currently selected resources. |
textRequired |
| Display text or localized text overrides; expand the type when this prop accepts an object. |
classNamesOptional |
| CSS class overrides for named internal parts; expand the type for the supported part names. |
disabledOptional | boolean | undefined | Disables user interaction with the control. |
readOnlyOptional | boolean | undefined | Shows resource details without checkbox controls or selection changes. |
presentationOptional | "inline" | "dropdown" | undefined | Keeps the full list visible or presents it as a compact combobox. |
multipleOptional | boolean | undefined | Allows more than one selected resource. Defaults to true. |
preserveOrderOptional | boolean | undefined | Keeps resources in caller-provided order instead of sorting by name. |
unassignedOptional |
| Optional choice for representing an unassigned resource. |
resourceDataAttributeOptional | string | undefined | Data attribute used to identify resource items in the rendered list. |
isResourceDisabledOptional |
| Return true for resources that cannot be selected. |
getAvatarColorOptional |
| Returns the avatar accent color for a resource. |
Events and callbacks1
| Name | Type | Description |
|---|---|---|
onChangeRequired |
| Receives the new value when the user changes the control. Update the corresponding value prop for controlled use. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.