File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
documentation/src/components Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 192192 </tr >
193193 <tr class =" table__tr" >
194194 <td class =" table__td" ><strong >filteringSortFunc</strong ></td >
195- <td class =" table__td" >Function</td >
195+ <td class =" table__td" >Function => Int </td >
196196 <td class =" table__td" ></td >
197197 <td class =" table__td" >Allows a custom sorting function when the user searching.
198198 This function will be the <i >compareFn</i > argument for
Original file line number Diff line number Diff line change 66 object properties look at the <a href =" #sub-asynchronous-select" >ajax search example</a >.</p >
77 <p ><code >custom-label</code > accepts a function with the <code >option</code > object as the first param. It should
88 return a string which is then used to display a custom label.</p >
9+ <p >When sorting a filtered list, <code >filteringSortFunc</code > accepts a function for use in <code >Array.sort()</code >.
10+ By default, it orders by the ascending length of each option.</p >
911 <CodeDemoAndExample demo-name =" SingleSelectSearch" />
1012 </div >
1113</template >
You can’t perform that action at this time.
0 commit comments