pysepal.sepalwidgets.btn.DownloadBtn#
- class pysepal.sepalwidgets.btn.DownloadBtn(*args, **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
- 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