Skip to content

Commit 8b20184

Browse files
committed
Added FAQ for #475.
1 parent 7ee176a commit 8b20184

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,6 +4201,16 @@ <h2 id="faq">Frequently Asked Questions</h2>
42014201
<dd>
42024202
This is a general issue not directly related to Bootstrap Multiselect: <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/455">#455</a>.
42034203
</dd>
4204+
4205+
<dt>How do add icons to the options (<a href="https://github.com/davidstutz/bootstrap-multiselect/issues/475">#475</a>)?</dt>
4206+
<dd>
4207+
Adapt the <code>optionLabel</code> option as follows:
4208+
<pre class="prettyprint linenums">
4209+
optionLabel: function(element){
4210+
return $(element).attr('label') || $(element).html();
4211+
},
4212+
</pre>
4213+
</dd>
42044214
</dl>
42054215

42064216
<div class="page-header">

0 commit comments

Comments
 (0)