Comments (7)
It works calling the jquery function inside the controller, which has the options data.
from bootstrap-select.
I'm also having issues with selectpicker and angularjs, but my problem is that the ng-model binding doesn't work if I use selectpicker, but works perfectly without it. Any ideas?
from bootstrap-select.
Same that you @elyobo
from bootstrap-select.
@onza I tried calling the $('.selectpicker').selectpicker(); inside the controller that has the options data, but it didn't work. Could you please provide an example of how you managed to make it work?
from bootstrap-select.
i have been facing this problem. selectpicker not working with ng-modal. Any soluttion ?
from bootstrap-select.
Check out https://github.com/caseyjhol/ng-bootstrap-select
from bootstrap-select.
Hi there!
I know the post was made long time ago but I hope my solution will be a help for others.
I got another solution to the issue related.
What I did was first load my data from back-end using angularjs and inside the .success after my validation I wrote the following code:
angular.element(document).ready(function () { $('select').selectpicker("destroy"); $('select').selectpicker("render"); });
I tried to do it without angular.element(document).ready(function (){}) but nothing happend. I suppose the plugin's methods only works inside that function.
Happy Coding!!
from bootstrap-select.
Related Issues (20)
- Select with icon HOT 4
- Button onclick not working in latest version, worked fine in 1.12.4
- [email protected] not working with Bootstrap 5.3.2 HOT 4
- data-selected-text-format after render or refresh
- ADA improvements for Select/deselect all options
- Name of Ukrainian language file is wrong.
- Select does not display in dropdown-menu HOT 1
- is there any feature like select all HOT 1
- Unable to have noneSelectedText with HTML with latest version
- doneButtonText not in i18n files and no longer adjustable via Javascript defaults
- SweetAlert2 - bootstrap select dropdown appears behind/cutoff parent div border HOT 1
- Error when have a class attribute for optgroup tag
- wrong preview for > in <select class="form-control mobileSelect"> in Safari
- Turkish Case Sensitive
- I want to style the top div and add margin to it, unable to do so HOT 1
- Show as a list instead of dropdown
- Show selected items first in the drop down list
- keyCode isn't propagated in the event
- Bootstrap Floating labels broken HOT 9
- XSS injection possible with data-content HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-select.