Skip to main content

Custom Button

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

Description

The CustomButton component renders a button with a loading state and optional download functionality, offering a flexible and reusable solution for various use cases within the application.

This component is used to download data returned by the last service in the services array defined in the application configuration (app-config.json). If the last service does not return any data, the button will not be displayed. For details about the types of services (function types), refer to the Function Type section in each service’s documentation.

Example

{
"name": "CustomButton",
"type": "Submit",
"props": {
"label": "Submit",
"description": "Click to submit the form",
"includeDownload": true,
"downloadFileName": "result"
}
}

Definitions

PropertyRequiredDescriptionType
nameYesThe name of the component (should be "CustomButton")String
typeYesThe type of the button (should be "Submit")ComponentType
propsYesThe properties for the CustomButtonProps

Props

PropertyRequiredDescriptionType
labelYesThe text to display on the buttonString
descriptionNoTooltip text for the buttonString
includeDownloadNoWhether to download the data passed to the button when it is clickedBoolean
downloadFileNameNoThe name of the file to downloadString