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

Add file/directory search buttons next to text input #10

Open
tsostarics opened this issue Dec 19, 2023 · 3 comments
Open

Add file/directory search buttons next to text input #10

tsostarics opened this issue Dec 19, 2023 · 3 comments
Labels
enhancement New feature or request UI Change Proposed change to a UI element

Comments

@tsostarics
Copy link
Owner

Personally i'm fine with typing in the paths to directories and files but i know not everyone is. The text inputs should have little buttons to the left of them to open a file open window, then take the string result from that and update the textinput accordingly. Use the folder-open icon from fontawesome.

@tsostarics tsostarics added the enhancement New feature or request label Dec 19, 2023
@tsostarics
Copy link
Owner Author

tsostarics commented Dec 19, 2023

See file input widget here: https://gallery.shinyapps.io/081-widgets-gallery/

@tsostarics
Copy link
Owner Author

I dont think the file input would work unless you select a file within the desired directory, which presupposes that there exists a file in that directory to select, which may not be the case. One of these might work, I'll look in to this more tomorrow

https://community.rstudio.com/t/shiny-directory-input/29160
https://stackoverflow.com/questions/55941597/how-to-select-a-directory-and-output-the-selected-directory-in-r-shiny

@tsostarics tsostarics added the UI Change Proposed change to a UI element label Dec 21, 2023
@tsostarics
Copy link
Owner Author

I'll implement this soon using shinyFiles::shinyDirChoose(), I'm not quite sure why I'm required to use shinyDirButton, but I'll have to do some styling workaround to get it inline the way submitTextButton is currently implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request UI Change Proposed change to a UI element
Projects
None yet
Development

No branches or pull requests

1 participant