announcements-4.0.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. <h1>Pre-release notes</h1>
  9. <hr />
  10. <p class="lead">
  11. The 4.0 release is ready for early adopters interested in testing it out.
  12. You can use the development version, available on GitHub, by getting the
  13. source code available in the <code>select2-ng</code> branch. The source
  14. code can be
  15. <a href="https://github.com/ivaynberg/select2/archive/select2-ng.zip">
  16. downloaded as a <code>zip</code> archive
  17. </a> as well.
  18. </p>
  19. </section>
  20. <hr />
  21. <section id="release">
  22. <h1>Select2 4.0.0</h1>
  23. <p>
  24. The 4.0 release of Select2 is the result of three years of working on the
  25. code base and watching where it needs to go. At the core, it is a full
  26. rewrite that addresses many of the extensibility and usability problems
  27. that could not be addressed in previous versions.
  28. </p>
  29. <p>
  30. This release contains many breaking changes, but easy-upgrade pathes have
  31. been created as well as helper modules that will allow for backwards
  32. compatibility to be maintained with past versions of Select2. Upgrading
  33. <em>will</em> require you to read the release notes carefully, but the
  34. migration path should be relatively straightforward. You can find more
  35. information on the modules that have been created to make upgrading easier
  36. by <a href="compat.html">looking at the compatibility guide</a> for older
  37. Select2 versions.
  38. </p>
  39. <p>
  40. Below is an in-depth review of what is new in Select2, as well as some of
  41. the major changes that have been made.
  42. </p>
  43. </section>
  44. <section id="new">
  45. <h2>New features</h2>
  46. <p>
  47. The notable features of this new release include:
  48. </p>
  49. <ul>
  50. <li>
  51. A more flexible plugin framework that allows you to override Select2 to
  52. behave exactly how you want it to.
  53. </li>
  54. <li>
  55. Consistency with standard <code>&lt;select&gt;</code> elements for all
  56. data adapters, removing the need for hidden <code>&lt;input&gt;</code>
  57. elements.
  58. </li>
  59. <li>
  60. A new build system that uses AMD to keep everything organized.
  61. </li>
  62. <li>
  63. Less specific selectors allowing for Select2 to be styled to fit the
  64. rest of your application.
  65. </li>
  66. </ul>
  67. </section>
  68. <section id="plugins">
  69. <h2>Plugins</h2>
  70. <p>
  71. Select2 now provides interfaces that allow for it to be easily extended,
  72. allowing for anyone to create a plugin that changes the way Select2 works.
  73. This is the result of Select2 being broken into four distinct sections,
  74. each of which can be extended and used together to create your unique
  75. Select2.
  76. </p>
  77. <h3>
  78. Container (selection)
  79. </h3>
  80. <p>
  81. This includes the primary container that users interact with to open the
  82. dropdown.
  83. </p>
  84. <h3>
  85. Dropdown
  86. </h3>
  87. <p>
  88. This includes the dropdown that is opened when the container is clicked.
  89. This also includes the results list, which is a separate component.
  90. </p>
  91. <h3>
  92. Results
  93. </h3>
  94. <p>
  95. This includes the list of possible options that can be selected.
  96. </p>
  97. <h3>
  98. Data set
  99. </h3>
  100. <p>
  101. This is how the options are calculated.
  102. </p>
  103. </section>
  104. </div>