Description Usage Arguments Details Value Source See Also
View source: R/utils_fileBrowserDialog.R
Input to interactively select a file or directory on the server
1 2 3 4 5 6 7 8 9 10 11 12 |
id |
Character: input identifier |
label |
Character: input label (if |
value |
Character: initial value (paths are expanded via
|
placeholder |
Character: placeholder when no file or folder is selected |
info |
Boolean: add information icon for tooltips and pop-overs |
infoFUN |
Function to use to provide information (e.g.
|
infoPlacement |
Character: placement of the information (top, bottom, right or left) |
infoTitle |
Character: text to show as title of information |
infoContent |
Character: text to show as content of information |
clearable |
Boolean: allow to clear selected file or directory? |
To show the dialog for file input, the prepareFileBrowser()
function needs to be included in the server logic.
This widget relies on fileBrowser()
to present an interactive
dialogue to users for selecting a directory on the local filesystem.
Therefore, this widget is intended for shiny apps that are run locally - i.e.
on the same system that files/directories are to be accessed - and not from
hosted applications (e.g. from https://www.shinyapps.io).
HTML elements for a file browser input
https://github.com/wleepang/shiny-directory-input
updateFileBrowserInput()
and prepareFileBrowser()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.