Examples are good for now
This commit is contained in:
parent
d386849c1f
commit
c51a6d6cee
@ -87,6 +87,21 @@ $(".js-example-basic-multiple").select2();
|
|||||||
<select class="js-example-placeholder-multiple js-states form-control" multiple="multiple"></select>
|
<select class="js-example-placeholder-multiple js-states form-control" multiple="multiple"></select>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-8">
|
||||||
|
<h2>Example code</h2>
|
||||||
|
|
||||||
|
<pre data-fill-from=".js-code-placeholder"></pre>
|
||||||
|
|
||||||
|
<script type="text/x-example-code" class="js-code-placeholder">
|
||||||
|
$(".js-example-placeholder-single").select2({
|
||||||
|
placeholder: "Select a state"
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".js-example-placeholder-multiple").select2({
|
||||||
|
placeholder: "Select a state"
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<seection id="data-array" class="row">
|
<seection id="data-array" class="row">
|
||||||
@ -138,7 +153,8 @@ $(".js-example-data-array-selected").select2({
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="data-ajax">
|
<section id="data-ajax row">
|
||||||
|
<div class="col-md-12">
|
||||||
<h1>Loading remote data</h1>
|
<h1>Loading remote data</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -151,9 +167,15 @@ $(".js-example-data-array-selected").select2({
|
|||||||
|
|
||||||
<pre data-fill-from=".js-code-data-ajax"></pre>
|
<pre data-fill-from=".js-code-data-ajax"></pre>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Select2 will pass any options in the <code>ajax</code> object to
|
||||||
|
jQuery's <code>$.ajax</code> function.
|
||||||
|
</p>
|
||||||
|
|
||||||
<script type="text/x-example-code" class="js-code-data-ajax">
|
<script type="text/x-example-code" class="js-code-data-ajax">
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user