This is an overview of the most common usage of Button. For more information about the available properties, methods, or events, head over to the complete API documentation for Button.
<Button>
is a UI component that displays a button which reacts to a user gesture.
For more information about the available gestures, see Gestures in the official NativeScript documentation.
<Button text="Button" @tap="onButtonTap" />
Name | Type | Description |
---|---|---|
text | String | Sets the label of the button. |
textWrap | Boolean | Gets or sets whether the widget wraps the text of the label. Useful for longer labels. Default value is false . |
Name | Description |
---|---|
tap | Emitted when the button is tapped. |
Android | iOS |
---|---|
android.widget.Button | UIButton |