announcements-4.0.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ---
  2. layout: default
  3. title: Select2 4.0.0 Released
  4. slug: announcements-4.0
  5. ---
  6. <div class="container">
  7. <section id="pre-release">
  8. <h2>Pre-release notes</h2>
  9. <p>
  10. The 4.0 release is ready for early adopters interested in testing it out.
  11. You can use the development version, available on GitHub, by getting the
  12. source code available in the <code>select2-ng</code> branch. The source
  13. code can be
  14. <a href="https://github.com/ivaynberg/select2/archive/select2-ng.zip">
  15. downloaded as a <code>zip</code> archive
  16. </a> as well.
  17. </p>
  18. </section>
  19. <section id="release">
  20. <h1>Select2 4.0.0</h1>
  21. <p>
  22. The 4.0 release of Select2 is the result of three years of working on the
  23. code base and watching where it needs to go. At the core, it is a full
  24. rewrite that addresses many of the extensibility and usability problems
  25. that could not be addressed in previous versions.
  26. </p>
  27. <p>
  28. This release contains many breaking changes, but easy-upgrade pathes have
  29. been created as well as helper modules that will allow for backwards
  30. compatibility to be maintained with past versions of Select2. Upgrading
  31. <em>will</em> require you to read the release notes carefully, but the
  32. migration path should be relatively straightforward. You can find more
  33. information on the modules that have been created to make upgrading easier
  34. by <a href="compat.html">looking at the compatibility guide</a> for older
  35. Select2 versions.
  36. </p>
  37. <p>
  38. Below is an in-depth review of what is new in Select2, as well as some of
  39. the major changes that have been made.
  40. </p>
  41. </section>
  42. <section id="plugins">
  43. <h2>Plugins</h2>
  44. <p>
  45. Select2 now provides interfaces that allow for it to be easily extended,
  46. allowing for anyone to create a plugin that changes the way Select2 works.
  47. This is the result of Select2 being broken into four distinct sections,
  48. each of which can be extended and used together to create your unique
  49. Select2.
  50. </p>
  51. <h3>
  52. Container (selection)
  53. </h3>
  54. <p>
  55. This includes the primary container that users interact with to open the
  56. dropdown.
  57. </p>
  58. <h3>
  59. Dropdown
  60. </h3>
  61. <p>
  62. This includes the dropdown that is opened when the container is clicked.
  63. This also includes the results list, which is a separate component.
  64. </p>
  65. <h3>
  66. Results
  67. </h3>
  68. <p>
  69. This includes the list of possible options that can be selected.
  70. </p>
  71. <h3>
  72. Data set
  73. </h3>
  74. <p>
  75. This is how the options are calculated.
  76. </p>
  77. </section>
  78. </div>