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

Enable disabling the FileDownloadWidget #1371

Closed
MarcSkovMadsen opened this issue May 27, 2020 · 2 comments
Closed

Enable disabling the FileDownloadWidget #1371

MarcSkovMadsen opened this issue May 27, 2020 · 2 comments
Labels
TRIAGE Default label for untriaged issues

Comments

@MarcSkovMadsen
Copy link
Collaborator

My Pain

I'm trying to use the FileDownload Widget in my application. Depending on the state of the application there might be a file to download or not. If there currently is nothing to download I would like to disable the FileDownload Widget.

As far as I can see this is not possible according to the documentation at https://panel.holoviz.org/reference/widgets/FileDownload.html. I've also tried instantiating the FileDownload Widget with disabled=True and this does not work.

Solution

Add disabled parameter to FileDownload and implement the associated functionality.

@MarcSkovMadsen MarcSkovMadsen added the TRIAGE Default label for untriaged issues label May 27, 2020
@maximlt
Copy link
Member

maximlt commented May 27, 2020

This was added in #1306, you could checkout master and see whether it works as you expect.

@MarcSkovMadsen
Copy link
Collaborator Author

Closing this one then. Thanks @maximlt

@maximlt maximlt closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TRIAGE Default label for untriaged issues
Projects
None yet
Development

No branches or pull requests

2 participants