Home Reference Source Test
public class | source

BottomTabBarRouter

Extends:

src/native/BottomTabBarRouter.js~Router → BottomTabBarRouter

Static Method Summary

Static Public Methods
public static

of(param: RouteParams): *

Builds OS specific NaitveRouter

Constructor Summary

Public Constructor
public

constructor(param0: {path: string, target: object|null, routes: Array, exact: boolean})

Method Summary

Public Methods
public
public

isInitialPath(path: stirng): boolean

Checks specified path is currently opened path

public

CHecks if TabBarItem is visited before

public

renderMatches(matches: *, state: *, action: *)

public

resolveIndex(path: string): *

Finds child route's index by path

public

resolveRoute(index: number): *

Finds child route by index

public

Pushes a new route by index

public

setVisited(index: number, path: string)

Sets TabBarItems visited by TabBarItem index

Protected Methods
protected

onRouteMatch(route: *, match: *, state: *, action: *): boolean

Static Public Methods

public static of(param: RouteParams): * source

Builds OS specific NaitveRouter

Params:

NameTypeAttributeDescription
param RouteParams

Return:

*

Public Constructors

public constructor(param0: {path: string, target: object|null, routes: Array, exact: boolean}) source

Params:

NameTypeAttributeDescription
param0 {path: string, target: object|null, routes: Array, exact: boolean}

Public Methods

public dispose() source

public isInitialPath(path: stirng): boolean source

Checks specified path is currently opened path

Params:

NameTypeAttributeDescription
path stirng

Route path

Return:

boolean

public isVisited(index: number): boolean source

CHecks if TabBarItem is visited before

Params:

NameTypeAttributeDescription
index number

Return:

boolean

public renderMatches(matches: *, state: *, action: *) source

Params:

NameTypeAttributeDescription
matches *
state *
action *

public resolveIndex(path: string): * source

Finds child route's index by path

Params:

NameTypeAttributeDescription
path string

Return:

*

public resolveRoute(index: number): * source

Finds child route by index

Params:

NameTypeAttributeDescription
index number

Return:

*

public routetoIndex(index: number) source

Pushes a new route by index

Params:

NameTypeAttributeDescription
index number

public setVisited(index: number, path: string) source

Sets TabBarItems visited by TabBarItem index

Params:

NameTypeAttributeDescription
index number
path string

Protected Methods

protected onRouteMatch(route: *, match: *, state: *, action: *): boolean source

Params:

NameTypeAttributeDescription
route *
match *
state *
action *

Return:

boolean