Commit 8b201843 authored by davidstutz's avatar davidstutz

Added FAQ for #475.

parent 7ee176a7
...@@ -4201,6 +4201,16 @@ $('.multiselect').multiselect({ ...@@ -4201,6 +4201,16 @@ $('.multiselect').multiselect({
<dd> <dd>
This is a general issue not directly related to Bootstrap Multiselect: <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/455">#455</a>. This is a general issue not directly related to Bootstrap Multiselect: <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/455">#455</a>.
</dd> </dd>
<dt>How do add icons to the options (<a href="https://github.com/davidstutz/bootstrap-multiselect/issues/475">#475</a>)?</dt>
<dd>
Adapt the <code>optionLabel</code> option as follows:
<pre class="prettyprint linenums">
optionLabel: function(element){
return $(element).attr('label') || $(element).html();
},
</pre>
</dd>
</dl> </dl>
<div class="page-header"> <div class="page-header">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment