This is an overview of the most common usage of NavigationButton. For more information about the available properties, methods, or events, head over to the complete API documentation for NavigationButton.
The NavigationButton component is a NativeScript abstraction for the Android navigation button, and the iOS back button.
<ActionBar title="My App">
<NavigationButton text="Go back" android.systemIcon="ic_menu_back" @tap="goBack" />
</ActionBar>
name | type | description |
---|---|---|
text | String | Sets the text to be shown on iOS. |
android.systemIcon | String | The icon to be shown on Android. |
The icon list for Android can be found at https://developer.android.com/reference/android/R.drawable.html, and the icons are the ones that start with ic_
prefix.
name | description |
---|---|
tap | Emitted when the NavigationButton has been tapped. |