Skip to content

Commit 01af00d

Browse files
Add more details about child component
1 parent e9920cc commit 01af00d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: content/docs/en/elements/components/button.md

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ If you need to style parts of the text, you can use a combination of a `Formatte
4646
|------|-------------|
4747
| `tap` | Emitted when the button is tapped.
4848

49+
### Child component as Button
50+
If you want to use the event @tap on a child component. You have to use the expression : ``@tap.native``, otherwise it wont works.
51+
Example :
52+
53+
```js
54+
<myChildComponent text="Hello There" @tap.native="myFunction" />
55+
```
56+
4957
## Native component
5058

5159
| Android | iOS |

0 commit comments

Comments
 (0)