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 controlling argument in mwSelectize function via other input #62

Closed
yun-cheng opened this issue Mar 6, 2019 · 2 comments
Closed

Comments

@yun-cheng
Copy link

Hi, I'm trying to control the options argument in the mwSelectize function, specifically the maxItems argument in options argument via mwSelect input.
Here is the sample code and got error emssage when changing the selection of max.
Any ideas to solve this issue? Thanks.

Code

require(manipulateWidget)
manipulateWidget(
  NA,
  max = mwSelect(choices = c(1:5)),
  select = mwSelectize(choices = c(1:5), multiple = T, 
                       options = list(maxItems = max)
  )
)

Error message

Warning: Error in <Anonymous>: unused argument (options = list(2))
  54: do.call
  53: <Anonymous>
  51: input$updateHTML
  50: updateHTML
  49: updateRevDeps
  48: inputList$setValue
  47: controller$setValueById
  46: <observer>
   3: shiny::runApp
   2: shiny::runGadget
   1: manipulateWidget
@FrancoisGuillem
Copy link
Contributor

Thank you for your message. It looks like a bug. I will try to solve this.

@bthieurmel
Copy link
Collaborator

Fix on current version

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

3 participants