From e3f1b83559cc7f9f1c28d0680288de32398b46f1 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 25 Jul 2012 01:14:56 +0300 Subject: [PATCH] optimize markup size in demo page --- select2-latest.html | 99 ++++++++++++--------------------------------- select2-master | 2 +- 2 files changed, 26 insertions(+), 75 deletions(-) diff --git a/select2-latest.html b/select2-latest.html index 38c68bb4..6d52e6d2 100755 --- a/select2-latest.html +++ b/select2-latest.html @@ -9,8 +9,14 @@ version: 3.0 @@ -25,6 +31,7 @@ $("#e3").select2({

Select2 Disabled Mode

-


-


+


+


@@ -802,7 +753,7 @@ $("#e17_2").select2({

Custom Matcher

Unlike other dropdowns on this page, this one matches options only if the term appears in the beginning of the string as opposed to anywhere

-


+


The dropdown below matches on custom attributes of the option tag. For example, the `blue` option can be matched by entering either `blue` or `cyan`.

@@ -822,8 +773,8 @@ $("#e18,#e18_2").select2();

Responsive Design - Percent Width

Select2's width can be set to a percentage of its parent to support responsive design. The two Select2 boxes below are styled to 50% and 75% width respectively.

-


-


+


+


Select2 will do its best to resolve the percent width specified via a css class, but it is not always possible. The best way to ensure that Select2 is using a percent based width is to inline the style declaration into the tag.

diff --git a/select2-master b/select2-master index e620b542..b3089218 160000 --- a/select2-master +++ b/select2-master @@ -1 +1 @@ -Subproject commit e620b54271be165366cbe58362b93d1be7b248cb +Subproject commit b3089218dcb9dbc1de226408e74bcf43eac690d8