slashek / bootstrap-select-rails Goto Github PK
View Code? Open in Web Editor NEWbootstrap-select-rails
License: MIT License
bootstrap-select-rails
License: MIT License
I've make the select options with select form helper, and using live search. but when i'm typing on the search input, it didn't work. it wont filter anything that i've typed.
= select 'user', 'year', options_for_select(((Date.today.year - 100)..Date.today.year), current_user.dob&.year), {}, class: 'form-control selectpicker', name: 'user[birthdate][year]', data: { 'live-search': true, 'show-subtext': true }
I'm using
Bootstrap-select v1.12.4
Hi,
I followed your instructions and installed the gem. I also added the lines to the application.js but when I try to run my application it says that "bootstrap-select" can't be found.
Do you have any idea of what might be ?
hello there. I am a bit confused. at the time I am writing this comment, version number on the gem mentions 1.12.4 but apparently bootstrap 4 is supported after version 1.13. can we get the 2 in line? currently the select show disabled after gem installation so presumably the updated version to support bootstrap 4 is not yet pushed. Please advise.
bootstrap-select depends on the load events of the window.
https://github.com/silviomoreto/bootstrap-select/blob/master/js/bootstrap-select.js#L1840
$(window).on('load.bs.select.data-api', function () {
$('.selectpicker').each(function () {
var $selectpicker = $(this);
Plugin.call($selectpicker, $selectpicker.data());
})
});
But the load events of the window is not fired in page transitions with Turbolinks 5.
Reference: snapappointments/bootstrap-select#1413
We relay the 'turbolinks:load' events of the document to the load events of the window.
For example:
$(document).on('turbolinks:load', function() {
$(window).trigger('load.bs.select.data-api');
});
I think it is a good idea to append above code into the vendor/assets/javascripts/bootstrap-select.js in this gem.
Because this gem is to use bootstrap-select with the Ruby on Rails.
https://github.com/silviomoreto/bootstrap-select
has release v1.5.3 have you run into compatibility issues updating?
Hi,
I followed your instructions and installed the gem. I also added the lines to the application.js but when I try to run my application it says that "bootstrap-select" can't be found.
Do you have any idea of what might be ?
hi, thanks for merging my PR, can you please update the rubygems version so i can use it in my gemfile. thanks.
http://guides.rubygems.org/publishing/#publishing-to-rubygemsorg
Do you plan on support the bootstrap 3 version of bootstrap-select here?
http://silviomoreto.github.io/bootstrap-select/3/
Would it be possible to update this to 1.13.12. The current newest version has a bug which makes it unusable in my case. I tried to do it myself but was not able to understand how to update everything properly.
When you use multiple + optgroup, there is an issue that prevent normal use.
This bug is fixed in the latest version of the lib.
Do you plan to update with 1.12.1 shortly ?
Thanks
Is it possible to upgrade this source JS to version 1.12.4 ? Thanks
I have a view file that has a successful implementation of a bootstrap-select-rails select field, however when I navigate to another page and then go back to original page the select fields are rendered as normal bootstrap select fields. If a refresh the page using the browsers refresh button the select fields also refresh and appear correctly as bootstrap-select-rails selects.
Any ideas how I can force the rendering of the select fields when changing pages?
Please add a step in the readme to include *= require bootstrap-select in application.css.scss
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.