mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Change snippet syntax to the new Jekyll tag.
This commit is contained in:
@@ -8,10 +8,10 @@ previous_url: /ApiReference/ui/button/HOW-TO
|
||||
# Button
|
||||
### Declaring button module
|
||||
Button module is required to use any button feature.
|
||||
<snippet id='button-require'/>
|
||||
{%snippet button-require%}
|
||||
|
||||
Other frequently used modules when working with buttons include:
|
||||
<snippet id='button-require-others'/>
|
||||
{%snippet button-require-others%}
|
||||
|
||||
### Attaching event handler for the button tap event.
|
||||
``` XML
|
||||
@@ -20,13 +20,13 @@ Other frequently used modules when working with buttons include:
|
||||
</Page>
|
||||
```
|
||||
### Creating a button
|
||||
<snippet id='button-create'/>
|
||||
{%snippet button-create%}
|
||||
|
||||
### Setting the text of a button
|
||||
<snippet id='button-settext'/>
|
||||
{%snippet button-settext%}
|
||||
|
||||
### Responding to the tap event
|
||||
<snippet id='button-tap'/>
|
||||
{%snippet button-tap%}
|
||||
|
||||
### Binding text property directly to model
|
||||
<snippet id='button-bind'/>
|
||||
{%snippet button-bind%}
|
||||
|
||||
Reference in New Issue
Block a user