Class: Navigator

Simplicite.UI.Navigator

Navigation controller

Parameters:
Name Type Description
app Simplicite.Ajax Ajax service
engine Simplicite.UI.Engine Main controller
Source:
  • navigator.js, line 15

Members

<inner> _nav

Navigation stack

Source:
  • navigator.js, line 21

Methods

clearHistory

Clear sysparam HISTORY

Source:
  • navigator.js, line 212

getHistory

Session history

Source:
  • navigator.js, line 191

getItem

Navigation element

Source:
  • navigator.js, line 32

getItems

Navigation history

Source:
  • navigator.js, line 27

length

Navigation length

Source:
  • navigator.js, line 37

loadHistory

Load sysparam HISTORY

Source:
  • navigator.js, line 197

Navigation. Returns the current item.

Parameters:
Name Type Description
action Optional 'new':reinit, 'add':push, 'del':pop, none: update last label
item Item to push in navigation { container, type, object, rowId, params, callback, url }
  • container: navigate location
  • label: item label
  • object: optional business object
  • rowId: optional object row ID to display the form
  • params: optional parameters related to list, form...
  • callback: optional callback related to list, form...
  • url: optional specific location to load in container
  • index: index search
Source:
  • navigator.js, line 55

Returns back in navigation

Parameters:
Name Type Description
n backward iterations (default 1)
params Optional additive parameters (to display messages or to override old parameters)
Source:
  • navigator.js, line 89

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)
Source:
  • navigator.js, line 132

reload

Reload current navigation

Source:
  • navigator.js, line 181

saveHistory

Save sysparam HISTORY

Source:
  • navigator.js, line 222