From ba61678358be970b9d0dcaebb9ca4d5245c597bd Mon Sep 17 00:00:00 2001 From: Florian Kissling Date: Sat, 2 May 2015 20:53:51 +0200 Subject: [PATCH] Group diacritics, RTL and l10n examples. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just an example – very unsure what goes with what. --- docs/_includes/nav/examples.html | 20 +++-- docs/examples.html | 132 +++++++++++++++---------------- 2 files changed, 77 insertions(+), 75 deletions(-) diff --git a/docs/_includes/nav/examples.html b/docs/_includes/nav/examples.html index c2e2b301..c7bef5ad 100644 --- a/docs/_includes/nav/examples.html +++ b/docs/_includes/nav/examples.html @@ -48,18 +48,22 @@
  • Custom matcher
  • -
  • - Diacritics support -
  • -
  • - Multiple languages -
  • Theme support
  • - RTL support -
  • + Localization, RTL and diacritics support + Back to top diff --git a/docs/examples.html b/docs/examples.html index 46b5f5fc..aa51b0f8 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -715,73 +715,6 @@ $.fn.select2.amd.require(['select2/compat/matcher'], function (oldMatcher) { -
    -

    Diacritics support

    - -

    - Select2's default matcher will ignore diacritics, making it easier for - users to filter results in international selects. Type "aero" into the - select below. -

    - -
    -

    - -

    -
    - -
    
    -
    -
    -
    -      
    - -
    -

    Multiple languages

    - -

    - Select2 supports displaying the messages in different languages, as well - as providing your own - custom messages - that can be displayed. -

    - -

    - The language does not have to be defined when Select2 is being - initialized, but instead can be defined in the [lang] - attribute of any parent elements as [lang="es"]. -

    - -
    -

    - -

    -
    - -
    
    -
    -
    -
    -      
    -

    Theme support

    @@ -822,6 +755,40 @@ $(".js-example-theme-multiple").select2({
    +

    + Localization, RTL and diacritics support +

    + +

    Multiple languages

    + +

    + Select2 supports displaying the messages in different languages, as well + as providing your own + custom messages + that can be displayed. +

    + +

    + The language does not have to be defined when Select2 is being + initialized, but instead can be defined in the [lang] + attribute of any parent elements as [lang="es"]. +

    + +
    +

    + +

    +
    + +
    
    +
    +
    +
             

    RTL support

    @@ -842,6 +809,37 @@ $(".js-example-theme-multiple").select2({ $(".js-example-rtl").select2({ dir: "rtl" }); + + +

    Diacritics support

    + +

    + Select2's default matcher will ignore diacritics, making it easier for + users to filter results in international selects. Type "aero" into the + select below. +

    + +
    +

    + +

    +
    + +
    
    +
    +