The flag djConfig.diagramForMobile (or dojoConfig.diagramForMobile in
Dojo 1.6 and higher) controls whether a set of features is loaded
or not.
If djConfig.diagramForMobile is
true, the following features are disabled:
- Keyboard interactions: mobile devices typically have no physical keyboard.
- Focus management (for example, the dotted rectangle around the current node) which is typically associated with keyboard interactions, is disabled.
- Panning with the mouse wheel is disabled since mobile devices do not have a mouse.
- Marquee selection is disabled.
- The move interactor is disabled.
- The system that manages adorners is disabled since it is typically used in editor applications.
- Tooltips can be used on mobile devices, but the dijit.Tooltip widget is not loaded on mobile devices, so you must call dojo.require('dijit.Tooltip').
- dojo.i18n is not loaded (as is usually the case on mobile applications), See Localizing error messages on mobile devices to localize Dojo Diagrammer error messages on mobile applications.
If the
diagramForMobile
flag
is not explicitly set, it is automatically set to true when the application
runs on one of the current mobile browsers. You can force diagramForMobile
to
true or false by setting it explicitly on the djConfig section.
In this case, your setting has priority:<script type="text/javascript"> var djConfig = { diagramForMobile: false }; </script>
For example, if you want to enable the move interactor
in a mobile application, you can set
diagramForMobile
to
false. All the features are loaded like on a desktop application.