View source: R/mod_shinyFiles.R
fileChooserWithResetServer | R Documentation |
A formatted directory input using shinyFils with the UI rendered from the server to enable resetting. The format is based on AdminLTE v2 (shinydashboard)
fileChooserWithResetServer( id, roots, reset, label, title, multiple = TRUE, filetypes = NULL, pattern = NULL )
id |
Module id. |
roots |
A named vector of absolute filepaths or a function returning a named vector of absolute filepaths (the latter is useful if the volumes should adapt to changes in the filesystem). |
reset |
A reactive value to trigger the re-rendering of the UI. |
label |
The button label. |
title |
The browser window title. |
multiple |
A logical indicating whether or not it should be possible to select multiple files |
filetypes |
A character vector of file extensions (without dot in front i.e. 'txt' not '.txt') to include in the output. Use the empty string to include files with no extension. If not set all file types will be included |
pattern |
A regular expression used to select files to show. See base::grepl() for additional discussion on how to construct a regular expression (e.g., "log.*\.txt") |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.