Multiselect search whole string

前端 未结 1 1636
无人及你
无人及你 2021-01-16 23:57

I have a multiselect with search bound to a store (with attribute string_value). Search only searches strings that start with \"string to search\" instead of contains \"stri

相关标签:
1条回答
  • 2021-01-17 00:31

    The MultiSelector uses the Ext.util.Filter to narrow the results based on the typed text. You need to enable the anyMatch property for it to match anywhere.

    To do that, you'll have to include a new "search" function in your multiselector's search object that will have anyMatch=true.

    Please see my fiddle, https://fiddle.sencha.com/#fiddle/jf5, for an example of how to do this.

    0 讨论(0)
提交回复
热议问题