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

__init__

Custom download Btn filled with the provided text.

set_url

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

DownloadBtn.set_url(path='#')[source]#

Set the URL of the download btn. and unable it.

If nothing is provided the btn is disabled.

Parameters:

path (str | Path) – the absolute path to a downloadable content

Return type:

Self