Added notes on the AMD-specific options
This commit is contained in:
parent
d6a83ea026
commit
c5a3f34012
@ -102,6 +102,60 @@ $("select").select2({
|
||||
HTML5 data attributes.
|
||||
</p>
|
||||
|
||||
<h2>
|
||||
AMD compatibility
|
||||
</h2>
|
||||
|
||||
<p>
|
||||
You can find more information on how to integrate Select2 with your
|
||||
existing AMD-based project by
|
||||
<a href="announcements-4.0.html#amd-builds">viewing the 4.0 release notes</a>.
|
||||
Select2 automatically loads some modules when the adapters are being
|
||||
automatically constructed, so those who are using Select2 with a custom
|
||||
AMD build using their own system will need to specify the pathes that are
|
||||
generated to the Select2 modules.
|
||||
</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Key</dt>
|
||||
<dd>
|
||||
<code>amdBase</code>
|
||||
</dd>
|
||||
|
||||
<dt>Default</dt>
|
||||
<dd>
|
||||
<code>select2/</code>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Key</dt>
|
||||
<dd>
|
||||
<code>amdLanguageBase</code>
|
||||
</dd>
|
||||
|
||||
<dt>Default</dt>
|
||||
<dd>
|
||||
<code>select2/i18n/</code>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
If you are using Select2 in your own code base with your own AMD build
|
||||
system, it is recommended to use the full source of Select2 instead of the
|
||||
custom AMD build (<code>select2.amd.js</code>). This will allow you to
|
||||
apply your own build steps, such as minification and concatenation,
|
||||
independent of the Select2 defaults. You will need to set the path to the
|
||||
source directories in the <code>amdBase</code> and
|
||||
<code>amdLanguage</code> base options, which can be set globally through
|
||||
<a href="#defaults">the default options</a>.
|
||||
</p>
|
||||
|
||||
<h2>
|
||||
Display
|
||||
</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user