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
You can configure the search functionality within the component. The `data-coreui-search` option determines how the search input element is enabled and behaves. It accepts multiple types to provide flexibility in configuring search behavior. By default is set to `false`.
83
+
84
+
{{< example >}}
85
+
<selectclass="form-multi-select"multiple>
86
+
<optionvalue="0">Angular</option>
87
+
<optionvalue="1">Bootstrap</option>
88
+
<optionvalue="2">React.js</option>
89
+
<optionvalue="3">Vue.js</option>
90
+
<optgrouplabel="backend">
91
+
<option value="4">Django</option>
92
+
<option value="5">Laravel</option>
93
+
<option value="6">Node.js</option>
94
+
</optgroup>
95
+
</select>
96
+
{{< /example >}}
97
+
98
+
### Standard search
99
+
100
+
To enable the default search input element with standard behavior, please add `data-coreui-search="true"` like in the example below:
To enable the global search functionality within the Multi Select component, please add `data-coreui-search="global"`. When `data-coreui-search` is set to `'global'`, the user can perform searches across the entire component, regardless of where their focus is within the component. This allows for a more flexible and intuitive search experience, ensuring the search input is recognized from any point within the component.
|`ariaCleanerLabel`| string |`Clear all selections`| A string that provides an accessible label for the cleaner button. This label is read by screen readers to describe the action associated with the button. |
|`search`| boolean, string |`false`| Enables search input element. When set to `'global'`, the user can perform searches across the entire component, regardless of where their focus is within the component.|
289
348
|`searchNoResultsLabel`| string |`'No results found'`| Sets the label for no results when filtering. |
290
349
|`selectAll`| boolean |`true`| Enables select all button.|
291
350
|`selectAllLabel`| string |`'Select all options'`| Sets the select all button label. |
0 commit comments