// These variables must be defined in an options object named navigationUI.
// If a variable is not supplied, the default value is used.
// simple use of navigation controls
var options: {
var options: {
navigationUI: {
enabled: false,
iconPath: this._getIconURL() // automatic loading of the default icons
}
navigation: true
}
}
// OR to just load the module with default values:
// advanced use of navigation controls
var options: {
var options: {
navigationUI: true
navigation: {
iconPath: this._getIconURL() // automatic loading of the default icons
}
}
}
</pre>
</pre>
@ -1318,16 +1317,10 @@ var options: {
<th>Description</th>
<th>Description</th>
</tr>
</tr>
<tr>
<td>enabled</td>
<td>Boolean</td>
<td>false</td>
<td>On/off switch for the navigation UI elements.</td>
</tr>
<tr>
<tr>
<td>iconPath</td>
<td>iconPath</td>
<td>string</td>
<td>string</td>
<td>[path to vis.js]/UI_icons/</td>
<td>/path/to/navigation/icons/</td>
<td>The path to the icon images can be defined here. If custom icons are used, they have to have the same filename as the ones originally packaged with vis.js.</td>
<td>The path to the icon images can be defined here. If custom icons are used, they have to have the same filename as the ones originally packaged with vis.js.</td>
</tr>
</tr>
</table>
</table>
@ -1336,7 +1329,7 @@ var options: {
<p>
<p>
The graph can be navigated using shortcut keys.
The graph can be navigated using shortcut keys.
It can be configured with the following user-configurable settings.
It can be configured with the following user-configurable settings.
The default state for the keyboard navigation is <b>off</b>. The predefined keys can be found in the <ahref="../examples/graph/20_UI_example.html">UI example.</a>
The default state for the keyboard navigation is <b>off</b>. The predefined keys can be found in the example <ahref="../examples/graph/20_navigation.html">20_navigation.html</a>.
<h2>Navigation controls and keyboad navigation</h2>
<divstyle="width: 700px; font-size:14px;">
This example is the same as example 2, except for the navigation controls that has been activated. The navigation controls are described below. <br/><br/>