ember-caluma
provides buttons for mutating the state of work items.
The text of the button is per default the mutation name, it can be overwritten with either the label
parameter or using the component in block form.
The WorkItemButton component has 5 parameters:
mutation
The state mutation to be used eithercomplete
,skip
orcancel
.workItemId
Id of the work item which should be mutated.label
(Optional) Overwrites the button text.onSuccess
(Optional) Function to be called when the mutation succeeds.onError
(Optional) Function to be called when the mutation fails.
Additionally there are many optional parameters for the underlying UkButton component, refer to the UkButton component documentation to see what exactly they do:
type
disabled
loading
color
size
title