Represents a swipeable tabs view.

Hierarchy

  • TabNavigationBase
    • Tabs

Constructors

  • Returns Tabs

Properties

android: any

Gets the native android widget that represents the user interface for this component. Valid only when running on Android OS.

dynamicElevationOffset: number

@nativescript-community/ui-material-core installMixins.

Gets or sets the dynamic elevation offset of the view.

elevation: number

@nativescript-community/ui-material-core installMixins.

Gets or sets the elevation of the view.

ios: any

Gets the native iOS UITabBarController that represents the user interface for this component. Valid only when running on iOS.

iosCustomPositioning?: boolean

Allow custom positioning of Tabs within another view

Gets or sets the items of the Tabs.

offscreenTabLimit: number

Gets or sets the number of offscreen preloaded tabs of the Tabs.

rippleColor: Color

@nativescript-community/ui-material-core installMixins.

Gets or sets the ripple-color of the view.

rippleColorAlpha: number

@nativescript-community/ui-material-core installMixins.

Gets or sets the ripple-color alpha of the view.

selectedIndex: number

Gets or sets the selectedIndex of the Tabs.

swipeEnabled: boolean

Gets or sets the swipe enabled state of the Tabs.

tabsPosition: "top" | "bottom"

Gets or sets the position state of the Tabs.

tabStrip: TabStrip

Gets or sets the tab strip of the Tabs.

unloadOnTabChange: boolean
selectedEvent: string
selectedIndexChangedEvent: string

String value used when hooking to the selectedIndexChanged event.

unselectedEvent: string

Accessors

  • get _childrenCount(): number
  • Returns number

  • get _selectedView(): View
  • Returns View

Methods

  • Parameters

    • name: string
    • value: any[]

    Returns void

  • Parameters

    • name: string
    • value: any

    Returns void

  • Gets the parent fragment manager from a fragment to be used in destroying or hiding it.

    Parameters

    • fragment: Fragment

      target fragment

    Returns FragmentManager

    the parent fragment manager or null if none exists.

  • Returns FragmentManager

  • Returns void

  • Parameters

    • ...args: any

    Returns void

  • Parameters

    • callback: (child: ViewBase) => boolean

    Returns void

  • Iterates over children of type View.

    Parameters

    • callback: (child: View) => boolean

      Called for each child of type View. Iteration stops if this method returns falsy value.

    Returns void

  • Returns any

  • Returns any

  • Returns any

  • Returns any

  • Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

  • Returns any

  • Returns Color

  • Returns any

  • Returns Color

  • Parameters

    • oldIndex: number
    • newIndex: number

    Returns void

  • Parameters

    Returns void

  • Returns void

  • Parameters

    • value: any

    Returns void

  • Parameters

    • value: any

    Returns void

  • Parameters

    • value: any

    Returns void

  • Parameters

    • value: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • value: Color
    • Optionalalpha: number

    Returns void

  • Parameters

    • value: Color

    Returns void

  • Parameters

    • value: any

    Returns void

  • Parameters

    • value: Color

    Returns void

  • Parameters

    Returns ViewBase