Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It isn't possible to configure the ChosenValueListBox in runtime. #250

Open
foal opened this issue Jul 31, 2015 · 0 comments
Open

It isn't possible to configure the ChosenValueListBox in runtime. #250

foal opened this issue Jul 31, 2015 · 0 comments

Comments

@foal
Copy link
Contributor

foal commented Jul 31, 2015

The ChosenValueListBox should act as delegate to all configuration methods (e.g. setPlaceholderText) of underlining ChosenListBox. Now to update placeholder text I need to keep the ChosenOption object allong with ChosenValueListBox.

On component create:

        options = new ChosenOptions();
        options.setNoResultsText(FtModuleRs.TXT.nothingFound());
        orders = new ChosenValueListBox<>(new UserOrderRendere(), options);

and something in code:

        options.setPlaceholderText(FtModuleRs.TXT.waitToLoad());
        orders.setAcceptableValues(ImmutableList.<UserOrder> of());

ugly, isn't?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants