- Source:
Classes
Members
(static, constant) BACK_MODE_CLOSE
- Source:
(static, constant) BACK_MODE_HISTORY
- Source:
(static) whenInitialNavigationReady :qui.base.ConditionVariable
A condition that is fulfilled as soon as the initial navigation is completed.
Type:
- Source:
Methods
(static) addHistoryEntry(stateopt)
Add a history entry corresponding to the current path, or optionally to a given state.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
state |
Object |
<optional> |
the history entry state to add (will use |
- Source:
- See:
(static) getBackMode() → {String}
Return the function of the back button.
- Source:
Returns:
- Type
- String
(static) getCurrentHistoryEntryState() → {Object}
Capture a snapshot of the state of the current history entry.
- Source:
Returns:
- Type
- Object
(static) getCurrentPath() → {Array.<String>}
Return the current path as an array of path ids.
- Source:
Returns:
- Type
- Array.<String>
(static) getCurrentQuery() → {Object.<String, String>}
Return the current URL query as a dictionary.
- Source:
Returns:
- Type
- Object.<String, String>
(static) makeInternalAnchor(path, content) → {jQuery}
Create an anchor element that represents a link to an internal path.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | Array.<String> | |
content |
String | jQuery |
- Source:
Returns:
- Type
- jQuery
(static) navigate(path, handleErrorsopt, pageStateopt, historyEntryopt) → {Promise}
Navigate the given path.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
String | Array.<String> | the path to navigate |
|
handleErrors |
Boolean |
<optional> |
set to |
pageState |
* |
<optional> |
optional history state to pass to |
historyEntry |
Boolean |
<optional> |
whether to create a new history entry for current page before navigating (defaults
to |
- Source:
Returns:
a promise that settles as soon as the navigation ends, being rejected in case of any error
- Type
- Promise
(static) pathToURL(path) → {String}
Transform a QUI path into a fully qualified URL.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | Array.<String> |
- Source:
Returns:
- Type
- String
(static) setBackMode(mode)
Set the function of the back button:
qui.navigation.BACK_MODE_CLOSE
makes back button close the current page (default on small screens)qui.navigation.BACK_MODE_HISTORY
makes back button go back through history (default on large screens)
Parameters:
Name | Type | Description |
---|---|---|
mode |
String |
- Source:
(static) updateHistoryEntry(stateopt)
Update the current history entry from the current path, or optionally from a given state.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
state |
Object |
<optional> |
the history entry state to add (will use |
- Source:
- See: