diff --git a/docs/options.html b/docs/options.html index b0e3f71a..06c2633d 100644 --- a/docs/options.html +++ b/docs/options.html @@ -102,6 +102,60 @@ $("select").select2({ HTML5 data attributes.

+

+ AMD compatibility +

+ +

+ You can find more information on how to integrate Select2 with your + existing AMD-based project by + viewing the 4.0 release notes. + 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. +

+ +
+
+
+
Key
+
+ amdBase +
+ +
Default
+
+ select2/ +
+
+
+
+
+
Key
+
+ amdLanguageBase +
+ +
Default
+
+ select2/i18n/ +
+
+
+
+ +

+ 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 (select2.amd.js). 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 amdBase and + amdLanguage base options, which can be set globally through + the default options. +

+

Display