Files
NativeScript/apps/tests/ui/button/button.md
Erjan Gavalji f15f283c74 Reorder test file structure to match the modules
Needed to have a nice structured cookbook dir in the docs

Includes:
Move the data-module tests under the data dir
Move the frame tests under the ui dir
Rename the dialog.md file to dialogs.md
Fix the web-view title
Add previous_url attributes to each article for SEO
Rename the style dir to styling to match the reference
Fix the frame-tests path
2016-05-05 10:43:35 +03:00

32 lines
723 B
Markdown

---
nav-title: "button How-To"
title: "button"
description: "Examples for using button"
previous_url: /ApiReference/ui/button/HOW-TO
---
# 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'/>