Files
NativeScript/apps/tests/ui/button/button.md
2016-04-14 16:52:51 +03:00

31 lines
678 B
Markdown

---
nav-title: "button How-To"
title: "How-To"
description: "Examples for using button"
---
# Button
### Declaring button module
Button module is required to use any button feature.
<snippet id='button-require'/>
Other frequently used modules when working with buttons include:
<snippet id='button-require-others'/>
### Attaching event handler for the button tap event.
``` XML
<Page>
<Button tap="buttonTap" />
</Page>
```
### Creating a button
<snippet id='button-create'/>
### Setting the text of a button
<snippet id='button-settext'/>
### Responding to the tap event
<snippet id='button-tap'/>
### Binding text property directly to model
<snippet id='button-bind'/>