Giter VIP home page Giter VIP logo

bselect's People

Contributors

fagnermartinsbrack avatar weexpectedthis 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  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  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  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  avatar  avatar  avatar  avatar  avatar

bselect's Issues

Loop in dropdownlist when autopostback = true.

Hi, I´m using bselect in a dropdownlist + asp.net and when I put autopostback = true the page never stop loading, so I can not display the dropdownlist.

asp:DropDownList runat="server" ID="ddlId" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="ddlId_SelectedIndexChanged">/asp:DropDownList

$(function () {
$("select").bselect();
});

Thank´s and regards.-

Inform when there's no options available

When there's no options available - for example, the select is without any options or the search didn't return any result - a message informing this should be shown.

Doubt

I would like to know how can i set a value to the dropdown from a javascript function?

bSelect

Hi! I used your plugin bSelect. Is written very good. Has good makrup and working good, but i have question. You can add text-decoration: underline, when someone writing something.

Something like this:
http://s15.postimg.org/5evdloo17/screen.png

change event is not triggered on the underlying DOM-Node

When changing the select, the value of the underlying DOM-Node is updated, however the change-event is not fired. So integrating other libraries, which monitor the select with on('change') is broken.

I'm currently experimenting with a fix patching the select-function however the way it is implemented I'm still having issues, and I'm not familiar enough with your code.

Apply CSS enhancements in build time

CSS enhancements should be done when building bselect.
The goal is to eliminate cases where a selector has 2 properties of the same type, for example:

.bselect {
   padding: 4px 10px;
   padding-left: 15px;
}

Will try to find out how to do that with Grunt.

Disabling bselect

  • Add method disable. Basically, should refuse any interaction with the instance.
  • Add method enable. Should undo the disable method functionality.
  • Detect when the disabled attribute is present in <select>

Deploy uncompiled LESS file

The uncompiled LESS file should be deployed in the Grunt build script.

That's because of folks that may have customized their Bootstrap variables, so they can customize BSelect variables also!

bselect should be resized within the original element

After bselect has been instantiated, his width will never change. This behavior should change, resizing within the original select.

Probably, the best thing to do will be maintain the original select inaccessible (without display: none), so we'll be able to recalculate his width.

how to set default value?

i know it is ok to set the option select when the select is render first.
so how to set value when you bselect is render?

Update select after insert new options

Hi, Is there a way to update the select after dynamically inserting new options?

//  I create a new option and insert it in the select
jQuery("#jform_user_id").append(jQuery("<option>").text(data.user.name+' '+data.user.surname).attr("value", data.user.id));

//  Set the option as selected
jQuery("#jform_user_id").val(data.user.id);

//  Now I should update the select with the new option, how can I do?

jQuery("#jform_user_id").bselect("updateOptions") ???

Thank you

Remove dependencies from repo

Removing dependencies from the repository should be done to make it the cleaner possible.
An CDN like cdnjs.com should be used in favor of local dependencies.

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.