RouterState
Extends:
Direct Subclass:
Constructor Summary
| Public Constructor | ||
| public abstract |
constructor(arg_log_context: string): nothing Create a RouterState instance. |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
state_path: string[] |
|
Method Summary
| Public Methods | ||
| 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 Methods
public display_content(arg_view_name: string, arg_menubar_name: string): Promise source
Display the page content with given view and menubar.
public do_action_display_content(arg_view_name: string, arg_menubar_name: string): nothing source
Goto the page content with given view (update only the hash).
Return:
| nothing |
public do_action_go_backward(): nothing source
Display history previous content if available.
Return:
| nothing |
public do_action_go_forward(): nothing source
Display history next content if available.
Return:
| nothing |
public do_action_move_history(arg_new_index: *): nothing source
Move history current position.
@param{Number} arg_new_index - history position index.
Params:
| Name | Type | Attribute | Description |
| arg_new_index | * |
Return:
| nothing |
public do_action_update_history(arg_new_items: array): nothing source
Update history.
Params:
| Name | Type | Attribute | Description |
| arg_new_items | array | history array items. |
Return:
| nothing |
public handle_state_change(arg_previous_state: Immutable.Map, arg_new_state: Immutable.Map): nothing source
Handle state changes.
Params:
| Name | Type | Attribute | Description |
| arg_previous_state | Immutable.Map | previous state map. |
|
| arg_new_state | Immutable.Map | new state map. |
Return:
| nothing |
public load(arg_state: Immutable.Map | undefined): nothing source
Load and apply a container component configuration.
Params:
| Name | Type | Attribute | Description |
| arg_state | Immutable.Map | undefined | component state to load (optional). |
Return:
| nothing |
Reference
Source
