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
|``disabled``|`boolean=`|`false`|Whether the search box is disabled. |
43
-
|``readonly``|`boolean=`|`false`|Whether the search box is read-only. |
48
+
|``match``| `(item, keyword, { ancestors }) => boolean | Array<[number, number]>`|- | Used to customize search highlighting logic. See [`Autocomplete`](./Autocomplete#customizing-search). |
49
+
|``filter``|`(item, keyword, { ancestors, offsets }) => boolean`|-|Used to customize search hitting logic. See [`Autocomplete`](./Autocomplete#customizing-search). |
44
50
45
51
^^^ui
46
52
Style variants.
@@ -96,6 +102,17 @@ Specifies when the suggestion list is displayed. Can be either an event name or
96
102
Whether the suggestion list is expanded (if there are no items in `suggestions`, the list won't be expanded even the value is `false`).
97
103
^^^
98
104
105
+
^^^trim
106
+
Wether to trim the input value. If set to `true`, the input value will be trimmed from both ends. If set to `false`, the input value will not be trimmed. If set to a string, the input value will be trimmed from the specified side.
107
+
108
+
+++Enum
109
+
| Value | Description |
110
+
| -- | -- |
111
+
|`both`| Trim from both ends. Equivalent to `true`. |
0 commit comments