4

I have a selectizeInput with X choices. My idea it should provide a sort of inputbox with X options but I want these choices to be editable. By this I mean if I select an option and I want edit part of it instead of being forced to click "backspace" or "delete" to clear the box, I want to be able to edit part of it. For example if I pick in the drop down box "New York" and I want to add "New Jersey", I should be able to pick "New York" and just replace the "York" with "Jersey" without the need to rewrite all the input.

I can't seem to find any option to do this since the delete everything seems to be the default behaviour.

user697110
  • 589
  • 10
  • 25
  • 1
    You can use shinySky auto.complete... it s may be helpfull http://stackoverflow.com/questions/35265920/auto-complete-and-selection-of-multiple-values-in-text-box-shiny – Batanichek Sep 06 '16 at 09:05
  • Thanks, though I would rather not use external libraries – user697110 Sep 06 '16 at 10:08

1 Answers1

1

Use selectize with:

selectizeInput(... options = list(create=TRUE, plugins = list('restore_on_backspace')))
WJH
  • 539
  • 5
  • 14