sepal_ui.sepalwidgets.btn.DownloadBtn#
- class sepal_ui.sepalwidgets.btn.DownloadBtn(**kwargs)[source]#
Custom download Btn filled with the provided text.
The download icon is automatically embedded and green. The btn only accepts absolute links, if non is provided then the btn stays disabled.
- Parameters:
text (str) – the message inside the btn
path (str | Path) – the absoluteor relative path to a downloadable content
kwargs – any parameter from a v.Btn. if set, ‘children’ and ‘target’ will be overwritten.
Attributes
Methods
Custom download Btn filled with the provided text.
Set the URL of the download btn.
- DownloadBtn.__init__(text, path='#', **kwargs)[source]#
Custom download Btn filled with the provided text.
The download icon is automatically embedded and green. The btn only accepts absolute links, if non is provided then the btn stays disabled.
- Parameters:
text (str) – the message inside the btn
path (str | Path) – the absoluteor relative path to a downloadable content
kwargs – any parameter from a v.Btn. if set, ‘children’ and ‘target’ will be overwritten.
- Return type:
None