Skip to content

Commit 7c549af

Browse files
committed
docs(1763): Add new func prop for sorting search results
1 parent 84d4b7e commit 7c549af

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

documentation/src/components/Props.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
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

documentation/src/components/example-sections/SelectWithSearch.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
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>

0 commit comments

Comments
 (0)