Comments (5)
The commit b97f240 should fix the issue.
Could you try with this snapshot
from gwtchosen.
It works with the snapshot, but the chosen "search or pick" widget seems to always be visible.
from gwtchosen.
What do you mean by "the chosen "search or pick" widget seems to always be visible." ? Could you attach a screenshot ?
from gwtchosen.
I'm using Chosen in a DialogBox. I found that it worked just fine if I initialised the Chosen in the onLoad method instead of in the constructor of my DialogBox sub-class:
@Override
protected void onLoad() {
super.onLoad();
ChosenOptions options = new ChosenOptions();
options.setAllowSingleDeselect(true);
options.setNoResultsText("No branches to display");
options.setPlaceholderTextMultiple("Select branches");
$("#branches").as(Chosen).chosen(options);
}
from gwtchosen.
Yep, it's because in the constructor, the element with Id "branches is not
in the DOM yet. So $("#branches") cannot find the element
On Sep 11, 2012 6:37 AM, "David Pinn" [email protected] wrote:
I'm using Chosen in a DialogBox. I found that it worked just fine if I
initialised the Chosen in the onLoad method instead of in the constructor
of my DialogBox sub-class:@OverRide
protected void onLoad() {
super.onLoad();ChosenOptions options = new ChosenOptions(); options.setAllowSingleDeselect(true); options.setNoResultsText("No branches to display"); options.setPlaceholderTextMultiple("Select branches"); $("#branches").as(Chosen).chosen(options);
}
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-8446873.
from gwtchosen.
Related Issues (20)
- Missing classes into default chosen.gss
- ChosenValueListBox on change event is not fired HOT 2
- Error on demo page in custom filtering HOT 4
- Error "this.selectedItem is undefined" when add new items to ChosenListBox and update it HOT 2
- Is it possible to use gwtchosen as searchbox for multiple custom search terms? HOT 2
- X icon with multiple select chosen isn't centered
- No space in No results text HOT 1
- ChosenValueListBox allowSingleDeselect not working as expected HOT 17
- opt group dissapears on mobile gwtchosen view when select/deselecting its options HOT 2
- Make sure that box-sizing is set to content-box HOT 1
- Groups are not displayed when using a custom ResultFilter
- Using a custom ProvidesKey will cause an error in MultiChosenValueBox
- ShowingDropDownEvent missfired in iPad HOT 2
- ChosenChangeEvent fired only on selection (not deselection) HOT 1
- ChosenListBox.wrap() leads to NPE
- gwtchosen select box closes when clicking scrollbar (using IE) HOT 1
- Chosen List Box Width problems (too narrow)
- Custom Results Filter Resets Selected Options
- Failed to upgrade from GWT 2.7.0 to 2.8.0 HOT 2
- Chosen not Filtering Correctly and Error When Using Down Arrow Key to Select Results
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 gwtchosen.