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

Issue with named list in select2input #16

Open
bradddd opened this issue Jul 17, 2015 · 0 comments
Open

Issue with named list in select2input #16

bradddd opened this issue Jul 17, 2015 · 0 comments

Comments

@bradddd
Copy link

bradddd commented Jul 17, 2015

I'm wanting to use something like the following in a select2input for the choices

choices = list(
               "Group 1"=1,
               "Group 2"=2,
               "Group 3"=3,
               "Group 4"=4
                )

I'm expecting it to present "Group 1" or "Group 3" and have the underlying 1 & 3 values upon selection, but instead, I'm not seeing the string names for the list, just the underlying integer values.

This is how I would setup a checkboxGroupInput. I also tried doing it using setNames to generate the named list, but it's still not working.

Is this a bug, or am I missing something?

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

No branches or pull requests

1 participant