Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSelect2 4.0 #2743
+0
−0
Conversation
Oct 15, 2014
This was referenced
Closed
kevin-brown
force-pushed the
select2-ng
branch
from
e1434f7
to
f4f09c9
Oct 22, 2014
Oct 23, 2014
This was referenced
Closed
kevin-brown
force-pushed the
master
branch
from
aeb48f6
to
db7cd1b
Nov 1, 2014
Nov 5, 2014
This was referenced
Nov 17, 2014
This was referenced
Nov 25, 2014
This was referenced
kevin-brown
added this to the
4.0 milestone
Nov 26, 2014
Dec 5, 2014
This was referenced
Closed
Dec 15, 2014
This was referenced
Dec 16, 2014
This was referenced
Closed
Closed
Closed
kevin-brown
referenced this pull request
Dec 28, 2014
Closed
Allow declarative configuration via data- tags rather than javascript. #985
kevin-brown
referenced this pull request
Jan 5, 2015
Closed
Incorrect selected option returned if multiple options share a value #2894
This comment has been minimized.
This comment has been minimized.
The first beta public release has been made. https://github.com/select2/select2/releases/tag/4.0.0-beta.1 |
This comment has been minimized.
This comment has been minimized.
Congrats on the release and thanks for all your hard work @kevin-brown ! |
kevin-brown
merged commit 9d6752e
into
master
Mar 2, 2015
1 check was pending
continuous-integration/travis-ci/push
The Travis CI build is in progress
Details
kevin-brown
deleted the
select2-ng
branch
Mar 2, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
kevin-brown commentedOct 15, 2014
Select2 hasn't had any major releases for a few years, which has limited the
scope of the improvements that we have been able to make. Select2 4.0 aims to
be a total rewrite and reorganization of the code base.
This pull request is a work in progress. The checklist will be updated as things reach a state of completion, and new items will be added as we decide what features will be migrated.
Repository
dist
folder.js
andcss
, that will containcompiled versions of Select2's CSS and JavaScript.
vendor
folder.src
folderDocumentation
master
branchgh-pages
branch.have to always access it online.
CSS
supported by major browsers.
JavaScript
One of the goals of this refactoring is to bring Select2 back to its roots, so it will better match the native behaviour of a
<select>
box. This is being done through a series of core changes.<select>
for as the primary base element<input />
elements may still bemaintained through additional modules.
Core Modules
Select2 currently provides over 40 different options that can be combined during initialization to create a select box. During this upgrade process, we cannot provide them all by default, but support will be added for the most critical ones. Backwards compatibility modules may be created for any options which are not as important, but are still widely used.
Container
The Select2 container displays the selected results.
click
events that bubble up to the root element.Results
The Select2 dropdown should allow for the results to be displayed.
A module will be created that adds backwards compatibility with the old parametersNext / previous pagingresults
key which is an array of objectspagination
keyData sets
Select2 should support pulling the data from multiple sources, including a standard
<select>
, an array of data, and a remote data source.<select>
element with<option>
and<optgroup>
child elements that can be controled, just like a standard select box.<select>
element that is controlled by an external array, instead of child<option>
elements.<option>
tags.If a function is used, convert the array results on demand.<select>
element that is controlled by an external data source.Translations
Currently, Select2 supports many languages through translation files included within the repository. This includes over 40 languages that have been contributed by over 70 different contributors.
Other
Allow updating options on the flydata-*
attributesBackwards compatibility
Each of these options will be included in the core options. In cases where the options are changed during the migration, backwards compatibility modules will be created that try as best as possible to maintain backwards compatibility.
Next search termquery
function)Miscellaneous
<select>
title
attributes over from original<select>
<option>
tags<select>
tagTransparent support for mobile devices(A decision was made to maintain full mobile support.)