You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* support locked items in destination list
* use locked function instead of item.disabled
* added README & story
* migration to isLocked
* migration to isLocked
* migration to isLocked
* added test coverage
* corected climatcode
* corected climatcode
* corected climatcode
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ class Example extends Component {
108
108
|`searchSelectedItemsValue`|`string`|| The value of the search field for destination list. |
109
109
|`searchSelectedItemsChanged`|`function`|| Function to handle the change of search field for destination list. Accepts value as a single argument. |
110
110
|`selectedItemsFilterFunction`|`function`| based on label | Is the same as filterFunction by default to filter items based on the search query in destination list. |
111
-
111
+
|`isLocked`|`function`|`item => item.disabled`| Function to be used to define whether item is locked or not|
112
112
113
113
## Customization
114
114
@@ -168,6 +168,21 @@ The `SelectedItem` component receives the following props:
168
168
169
169
`height` - receives the height defined by the list
170
170
171
+
172
+
You can disable specific selected items by passing `item.disabled: true` or pass `isLocked` function which will be used to define whether the item is disabled.
0 commit comments