Git Product home page Git Product logo

Comments (5)

jDramaix avatar jDramaix commented on September 17, 2024

The commit b97f240 should fix the issue.

Could you try with this snapshot

from gwtchosen.

Shuky avatar Shuky commented on September 17, 2024

It works with the snapshot, but the chosen "search or pick" widget seems to always be visible.

from gwtchosen.

jDramaix avatar jDramaix commented on September 17, 2024

What do you mean by "the chosen "search or pick" widget seems to always be visible." ? Could you attach a screenshot ?

from gwtchosen.

dpinn avatar dpinn commented on September 17, 2024

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.

jDramaix avatar jDramaix commented on September 17, 2024

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)

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.