Code Monkey home page Code Monkey logo

bootstrap-selectsplitter's People

Contributors

fgiorgio avatar lukasdrgon avatar x13454 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bootstrap-selectsplitter's Issues

order is not maintained

The order of the options is not the same of the original select...

For example, change the example code with

<div class="container">
    <div class="row">
        <div class="col-xs-12" style="padding-top:40px;">
            <select data-selectsplitter-selector>
              <optgroup label="Category 1">
                <option value="5">Choice 1</option>
                <option value="3">Choice 2</option>
                <option value="2">Choice 3</option>
                <option value="4">Choice 4</option>
              </optgroup>
              <optgroup label="Category 2">
                <option value="5">Choice 5</option>
                <option value="6">Choice 6</option>
                <option value="7">Choice 7</option>
                <option value="8">Choice 8</option>
              </optgroup>
              <optgroup label="Category 3">
                <option value="5">Choice 9</option>
                <option value="6">Choice 10</option>
                <option value="7">Choice 11</option>
                <option value="8">Choice 12</option>
              </optgroup>
            </select>
        </div>
    </div>
</div>

and the options shown when you click on Category 1, are Choice 3, Choice 2, Choice 4, Choice 1 (in this order), instead Choice 1, Choice 2, Choice 3 and Choice 4

order of optgroup label is not maintained

just like in the other issue "order is not maintained" for the option value's... which is fixed... The order of optgroup label is not the same as how it it specified in html... sorts in asc

Multile Select

Any chance to select multiple values? so if we select two on left side this will show both selected values on right side, please advice.

Customization on bootstrap-selectsplitter

This is exactly what I want.
My data is two level select that is exactly this component does.

But, It looks so simple and can't be applied any style to it.
It always appears in two vertical boxes, not in two columns. Even, I added either col-md-6 or col-lg-6 in javascript file.
Beside, I found that this plug-in http://rickardn.github.io/listgroup.js/ would make it looked better.
So I add class='list-group' inside your javascript.
Unfortunately, it's still not working.

I would appreciate if you kindly provide more way to customize your wonderful component here. ๐Ÿ‘
Cheers.

Not rendering when only one optgroup with one option is present

Hi,
We found a situation in which bootstrap-selectsplitter is not rendering both lists well if we have the following scenario:

  • the select input has only one optgroup with only one option

You can easily reproduce this using your online demo here: http://jsfiddle.net/ae7fxdyy/
Just remove Category 2 and 3 groups and leave Category 1 with only "choice 1"

... or just check in this edited jsfiddle: http://jsfiddle.net/lopezcjf/nff30xtv/

Instead of the normal behavior, both are shown as dropdown lists and the right one has no selectable option

Regards
Javier

Handling "change" events

Hi,

Love this plugin!! Great work :)

I have an issue where I handle the "change" events of the selected item and pass the val of the select to an ajax method.

If I click on each option (going down the list, right select box) then click the previous option the val is lost, i.e. not passed as a "change" event.

Here is my jQuery code to handle the "change" event and pass the selected val to a get request:

    $(function(){
      $("select#select_selectsplitter").change(function(){
        $.get("/proc/ajax.php",{select_id:$(this).val()}, function(ajaxRes){
          $("div#displayData").html(ajaxRes);
        });
      });
    });

Any thoughts on this? If I use a vanilla select with optgroups the val isn't lost, so its seems the issue is with selectsplitter :(

Cheers,

Jay

error when special string in option value

hello ... try to update script and change:

self.$element.find('option[value=' + self.currentChildCategory + ']').attr('selected', 'selected');

to:

self.$element.find('option[value="' + self.currentChildCategory + "']').attr('selected', 'selected');

this should by changed in updateParentCategory and updateChildCategory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.