Router
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(arg_log_context: string): nothing Create a Router instance. |
Method Summary
Public Methods | ||
public |
add_handler(arg_route: string | RegExp, arg_handler: Function): nothing Add a route handler. |
|
public |
Init router. |
|
public |
Parse an url and route it. |
|
public |
set_hash_if_empty(arg_view_name: string, arg_menubar_name: string): nothing Update page url with given view and menubar (update only the hash). |
Inherited Summary
From class RouterState | ||
public |
|
|
public |
state_path: string[] |
|
public |
display_content(arg_view_name: string, arg_menubar_name: string): Promise Display the page content with given view and menubar. |
|
public |
do_action_clear_history(): nothing Clear history. |
|
public |
do_action_display_content(arg_view_name: string, arg_menubar_name: string): nothing Goto the page content with given view (update only the hash). |
|
public |
do_action_go_backward(): nothing Display history previous content if available. |
|
public |
do_action_go_forward(): nothing Display history next content if available. |
|
public |
do_action_move_history(arg_new_index: *): nothing Move history current position. |
|
public |
do_action_update_history(arg_new_items: array): nothing Update history. |
|
public |
Get name. |
|
public |
handle_state_change(arg_previous_state: Immutable.Map, arg_new_state: Immutable.Map): nothing Handle state changes. |
|
public |
Load and apply a container component configuration. |
|
public |
reduce_action(arg_previous_state: object, arg_action: object): object Store actions reducer pure function. |
|
public |
update_hash(arg_view_name: string, arg_menubar_name: string): nothing Update page url with given view and menubar (update only the hash). |
Public Constructors
public constructor(arg_log_context: string): nothing source
Create a Router instance.
Override:
RouterState#constructorParams:
Name | Type | Attribute | Description |
arg_log_context | string | context of traces of this instance (optional). |
Return:
nothing |
Public Methods
public add_handler(arg_route: string | RegExp, arg_handler: Function): nothing source
Add a route handler.
Return:
nothing |
public init(arg_home_view_name: string, arg_home_menubar_name: string): nothing source
Init router.
Return:
nothing |