Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.14 KB

buttons.md

File metadata and controls

44 lines (33 loc) · 1.14 KB

Buttons

ember-caluma provides buttons for mutating the state of work items.

Usage

WorkItemButton

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.

<WorkItemButton
  @mutation="complete"
  @workItemId="bb94ad56-d650-4c21-ba51-7c4230aef4b8"
/>

<WorkItemButton
  @label="Lorem Ipsum"
  @mutation="complete"
  @workItemId="bb94ad56-d650-4c21-ba51-7c4230aef4b8"
/>

<WorkItemButton
  @mutation="complete"
  @workItemId="bb94ad56-d650-4c21-ba51-7c4230aef4b8"
>
  Lorem Ipsum
</WorkItemButton>

The WorkItemButton component has 3 parameters:

  • mutation The state mutation to be used either complete, skip or cancel.
  • workItemId Id of the work item which should be mutated.
  • label (Optional) Overwrites the button text.

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