This component is built to function just like a FwPromiseButton, except instead of working with promises it works with tasks. For more information on ember tasks, click here.
<FwTaskButton @buttonIcon="fa-regular fa-floppy-disk" @buttonText="Save" @class="btn btn-primary btn-sm" @task= />
Methods
_taskHasRan
Boolean privateThis is a private boolean that logs whether the task has been completed or not.
Default: false
disableClick
BooleanIf true, this will prevent the task from being performed when the button is clicked. Otherwise it will work as normal.
Default: false
stateTimeout
NumberThe time that the state of the button should be shown before returning to default. Time must be specified in milliseconds.
Default: 3000