Rendered when the asynchronous operation has returned an failure. Will be shown for failureTimeout
before
resetting back to the idle state. Defaults to the ProcessingComponent
The component that will be rendered when the button is idle
Rendered when the asynchronous operation is in flight, defaults to ActivityIndicator
Rendered when the asynchronous operation has successfully completed. Will be shown for successTimeout
before
resetting back to the idle state. Defaults to the ProcessingComponent
Determines if the button is enabled or not
The opacity to be applied to the disabled component, defaults to 0.6
The amount of time that the failure component will be shown. Can be set to Infinity
to show the failure component
with no reset. The button can be explicitly reset with Button.reset
if needed.
Invoked when the button has completed the asynchronous operation
Invoked when the asynchronous operation created an failure
Invoked when the user has requested the asynchronous operation to occur
Invoked when the asynchronous function successfully completed
The style for the component
The amount of time that the success component will be shown after a successful asynchronous operation. Can be set
to Infinity
to show the success component with no reset which is useful for single asynchronous operation such as
submitting data. The button can be explicitly reset with Button.reset
if needed.
The theme to use to style the button
Invoked when the user taps the button
The component that will be rendered when the button is disabled