View source: R/generate_textboxes.R
The idea behind this function is to dynamically create a certain amount of shiny UI textboxes based on the number of ingredients the user wants to filter their search results by
1 | generate_textboxes(no_of_ingredients, wanted)
|
no_of_ingredients |
Number of ingredients selected by the user |
wanted |
Logical element dependent on whether the vectot of ingredients are wanted or unwanted ingredients |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.