gustavohenke / bselect Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED - The select decorator component that was missing for Twitter Bootstrap.
Home Page: http://gustavohenke.github.io/bselect
License: MIT License
DEPRECATED - The select decorator component that was missing for Twitter Bootstrap.
Home Page: http://gustavohenke.github.io/bselect
License: MIT License
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.
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.-
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.
I would like to know how can i set a value to the dropdown from a javascript function?
The original select is not being synchronized when an item in the bselect dropdown is selected.
When the label of the original select is clicked, should trigger the show
method.
So the label of the select will act as the label of the bselect, too.
When the dropdown is expanded, the currently selected item should be visible.
For example, if there are 100 items in the select and the item 80 is selected, if I expand BSelect, the part where the item 80 is should be visible.
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.
disable
. Basically, should refuse any interaction with the instance.enable
. Should undo the disable
method functionality.disabled
attribute is present in <select>
BSelect should listen to the change
event of the select, so when the code below is executed, BSelect gets the selection on the right item.
Example:
$("select").val("value").trigger("change");
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
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.
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?
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!
When BSelect is instantiated, it should select the current option in the original <select>
element.
rtl support
Add support to <optgroup>
s.
Hello,
Just like Select2 or Selectize you should move the dropdowns to the body container in order to allow them to be visible in case they're in a container that hides the overflow.
Add a data
setting, so the options will not be read from the select <option>
s.
Thats actually not an issue, but I have been working on support for bootstrap 3.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.