Navigator

open class Navigator(animation: NavAnimation? = null, swipeable: Boolean? = null, forceSwipeable: Boolean? = null, className: String? = null, init: Navigator.() -> Unit? = null)

A navigator component.

Parameters

animation

an animation type.

swipeable

an iOS swipe to pop feature

forceSwipeable

force iOS swipe on Android platform

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(animation: NavAnimation? = null, swipeable: Boolean? = null, forceSwipeable: Boolean? = null, className: String? = null, init: Navigator.() -> Unit? = null)

Creates a navigator component.

Properties

Link copied to clipboard

An animation type.

Link copied to clipboard

Force iOS swipe on Android platform.

Link copied to clipboard
val pages: dynamic

A dynamic property returning current pages stack.

Link copied to clipboard

An iOS swipe to pop feature.

Link copied to clipboard

The width of swipeable area calculated from the edge (in pixels).

Link copied to clipboard

Specify how much the page needs to be swiped before popping.

Link copied to clipboard
val topPage: dynamic

A dynamic property returning current top page.

Functions

Link copied to clipboard
open fun afterInsert(node: <Error class: unknown class>)
Link copied to clipboard
open fun bringPageTop(index: Int, options: dynamic = undefined): <Error class: unknown class><Unit>?

Brings the given page to the top of the page stack.

Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun insertPage(index: Int, page: Page, options: dynamic = undefined): <Error class: unknown class><Unit>?
open fun insertPage(index: Int, pageId: String, options: dynamic = undefined): <Error class: unknown class><Unit>?

Insert the specified page into the stack with at a position defined by the index argument.

Link copied to clipboard
open fun onDeviceBackButton(callback: (event: BackButtonEvent) -> Unit)

Sets device back button event listener.

Link copied to clipboard

Clears device back button event listener.

Link copied to clipboard
open fun onSwipe(callback: (ratio: Number) -> Unit)

Sets swipe event listener.

Link copied to clipboard
open fun onSwipeClear()

Clears swipe event listener.

Link copied to clipboard
fun Navigator.page(pageId: String? = null, className: String? = null, init: Page.() -> Unit? = null): Page

DSL builder extension function.

Link copied to clipboard
open fun popPage(options: dynamic = undefined): <Error class: unknown class><Unit>?

Pops the current page from the page stack.

Link copied to clipboard
open fun pushPage(page: Page, options: dynamic = undefined): <Error class: unknown class><Unit>?
open fun pushPage(pageId: String, options: dynamic = undefined): <Error class: unknown class><Unit>?

Pushes the specified page into the stack.

Link copied to clipboard
open fun removePage(index: Int, options: dynamic = undefined): <Error class: unknown class><Unit>?

Remove the specified page at a position in the stack defined by the index argument.

Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
open fun replacePage(page: Page, options: dynamic = undefined): <Error class: unknown class><Unit>?
open fun replacePage(pageId: String, options: dynamic = undefined): <Error class: unknown class><Unit>?

Replaces the current top page with the specified one.

Link copied to clipboard
open fun resetToPage(page: Page, options: dynamic = undefined): <Error class: unknown class><Unit>?
open fun resetToPage(pageId: String, options: dynamic = undefined): <Error class: unknown class><Unit>?

Clears page stack and adds the specified page to the stack.