new Navigator(app, engine, container, uniqueId)
- Description:
Navigation controller
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
engine |
Simplicite.UI.Engine | Main controller |
container |
jQuery | Optional container (popup, div...) |
uniqueId |
string | Optional navigator Id (default is the container#id if any) |
Methods
addHistory()
- Description:
Add a history of opened object in main navigation
clearHistory()
- Description:
Clear sysparam HISTORY
getCurrentItem()
- Description:
Current element
getHistory()
- Description:
Session history
getItem()
- Description:
Navigation element
getItems()
- Description:
Navigation history
getRootItem()
- Description:
Root element
length()
- Description:
Navigation length
loadHistory()
- Description:
Load sysparam HISTORY
nav(action, item)
- Description:
Navigation. Returns the current item.
Parameters:
Name | Type | Description |
---|---|---|
action |
Optional |
|
item |
Item to push in navigation
|
navBack(n, params)
- Description:
Returns back in navigation
Parameters:
Name | Type | Description |
---|---|---|
n |
backward iterations (default 1, reload 0) |
|
params |
Optional additive parameters (to display messages or to override old parameters) |
navId(id)
- Description:
Navigator Id to isolate its object instances
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Optional value to set the unique id |
navTo(n, params)
- Description:
Navigate to item. Returns to home if unknown.
Parameters:
Name | Type | Description |
---|---|---|
n |
Navigation item or index, default is the last one |
|
params |
Optional additive parameters (to display messages or to override old parameters) |
reload()
- Description:
Reload current navigation and notify js-reload components
saveHistory()
- Description:
Save sysparam HISTORY