Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): add user documentation for workitembutton
- Loading branch information
Showing
6 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# 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. | ||
|
||
```hbs | ||
<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](https://adfinis-sygroup.github.io/ember-uikit/#/docs/components/button) component, refer to the UkButton component documentation to see what exactly they do: | ||
|
||
- `type` | ||
- `disabled` | ||
- `loading` | ||
- `color` | ||
- `size` | ||
- `title` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ dummy: | |
load: "Load" | ||
loadMore: "Load more" | ||
getWorkItems: "getWorkItems" | ||
buttons: "Buttons" |