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.

Компонент NavigationButton - абстракция NativeScript для кнопки навигации Android и кнопки назад для iOS.


<ActionBar title="My App">
  <NavigationButton text="Go back" android.systemIcon="ic_menu_back" @tap="goBack" />
</ActionBar>

Props

ИмяТипОписание
textStringЗадает текст, который будет отображен в iOS.
android.systemIconStringИконка, которая будет отображена в Android.

Список иконок для Android можно найти по ссылке: https://developer.android.com/reference/android/R.drawable.html, где иконки - это те, которые начинаются с префикса ic_.

События

ИмяОписание
tapВызывается при нажатии на NavigationButton.
Contributors