Skip to content

Commit c63c912

Browse files
Document equality options in README
1 parent 94c8630 commit c63c912

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,12 @@ Below are some short examples, they all use the following `@code` block:
6868
This demonstrates the dark mode of the dropdown when Bootstrap is set to dark mode.
6969
![image](https://github.com/user-attachments/assets/8613cd7a-cf6f-4116-b5f6-c0ee2b995fa6)
7070

71+
### Equality options
72+
```html
73+
<SimpleMultiselect
74+
Options="_items"
75+
@bind-SelectedOptions="_selectedItems"
76+
MatchByReference="true" />
77+
```
78+
By default the dropdown will check if items are in the selected items set based on their string representation.
79+
If you instead prefer the default equality comparison set `MatchByReference` to `true`.

0 commit comments

Comments
 (0)