دبي

الباطني: نشكر كل يدٍ خيرةٍ ساهمت بدعم مشاريعنا القرآنية

<p>vv</p> <p>If you have lots of options and want to populate them based on a database search or other external data source, you can use the&nbsp;<code>getSearchResultsUsing()</code>&nbsp;and&nbsp;<code>getOptionLabelUsing()</code>&nbsp;methods instead of&nbsp;<code>options()</code>.</p> <p>The&nbsp;<code>getSearchResultsUsing()</code>&nbsp;method accepts a callback that returns search results in&nbsp;<code>$key =&gt; $value</code>&nbsp;format. The current user&rsquo;s search is available as&nbsp;<code>$search</code>, and you should use that to filter your results.</p> <p>The&nbsp;<code>getOptionLabelUsing()</code>&nbsp;method accepts a callback that transforms the selected option&nbsp;<code>$value</code>&nbsp;into a label. This is used when the form is first loaded when the user has not made a search yet. Otherwise, the label used to display the currently selected option would not be available.</p> <p>Both&nbsp;<code>getSearchResultsUsing()</code>&nbsp;and&nbsp;<code>getOptionLabelUsing()</code>&nbsp;must be used on the select if you want to provide custom search results:</p>