class documentation

class DownloadButton(BaseModel): (source)

View In Hierarchy

The data required for creating an downloadButton in Vue.

Class Variable api_call The API call for downloading.
Class Variable button_label The label for the download button.
Class Variable button_primary Specify whether the button is styled as a primary button.
Class Variable disabled Specify whether the button is disabled.
Class Variable filename The suggested file name when downloaded. Leave blank to not suggest a name.

The API call for downloading.

This is either the URL, or the details for calling a LabThings Action.

button_label: str = (source)

The label for the download button.

button_primary: bool = (source)

Specify whether the button is styled as a primary button.

disabled: bool = (source)

Specify whether the button is disabled.

filename: str = (source)

The suggested file name when downloaded. Leave blank to not suggest a name.