Skip to content

Commit

Permalink
document bool arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdoc authored and adamghill committed Mar 30, 2022
1 parent 8f90653 commit 68296fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ class PassingArgsView(UnicornView):

### Argument types

Arguments can be most basic Python types, including `string`, `int`, `float`, `list`, `tuple`, `dictionary`, `set`, `datetime`, and `UUID4`.
Arguments can be most basic Python types, including `string`, `int`, `float`, `bool`, `list`, `tuple`, `dictionary`, `set`, `datetime`, and `UUID4`.

```html
<!-- argument-types.html -->
<div>
<button unicorn:click="update(99)">Pass int</button>
<button unicorn:click="update(1.234)">Pass float</button>
<button unicorn:click="update(True)">Pass bool</button>
<button unicorn:click="update({'key': 'value'})">Pass dictionary</button>
<button unicorn:click="update([1, 2, 3])">Pass list</button>
<button unicorn:click="update((1, 2, 3))">Pass tuple</button>
Expand Down

0 comments on commit 68296fc

Please sign in to comment.