You are reading docs for v1.3.1, click here for the latest version.
NavigationButton

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>

Props

nametypedescription
textStringSets the text to be shown on iOS.
android.systemIconStringThe 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.

Events

namedescription
tapEmitted when the NavigationButton has been tapped.
Contributors