Class: Navigator

Simplicite.UI.Navigator

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

Members

<inner> _nav

Navigation stack

Source:
  • navigator.js, line 26

Methods

clearHistory

Clear sysparam HISTORY

Source:
  • navigator.js, line 241

getHistory

Session history

Source:
  • navigator.js, line 220

getItem

Navigation element

Source:
  • navigator.js, line 37

getItems

Navigation history

Source:
  • navigator.js, line 32

length

Navigation length

Source:
  • navigator.js, line 42

loadHistory

Load sysparam HISTORY

Source:
  • navigator.js, line 226

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 70

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

Navigator Id to isolate its object instances

Parameters:
Name Type Description
id string optional value to set the unique id
Source:
  • navigator.js, line 49

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 152

reload

Reload current navigation and notify js-reload components

Source:
  • navigator.js, line 208

saveHistory

Save sysparam HISTORY

Source:
  • navigator.js, line 251