Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

Stylus Module

The Stylus Module is used to enable or disable the touch screen.


stylus (Module) <META> Syntax

<META HTTP-EQUIV="Stylus" content="[method]">

Stylus JavaScript Object Syntax:
By default the JavaScript Object 'stylus' will exist on the current page and can be used to interact directly with the stylus.
To Invoke stylus methods via JavaScript use the following syntax: stylus.method();

e.g. stylus.enable();
To set multiple EMML parameters / events on a single line use the following syntax: stylus.setEMML("[Your EMML Tags]");

e.g. stylus.setEMML("enable");
Stylus Ruby Object Syntax:
By default the Ruby Object 'Stylus' will exist on the current page and can be used to interact directly with the Stylus. All Methods, Parameters and Events are the same as JavaScript, however, notice 'Stylus' needs to start with an uppercase letter. Another difference in Ruby is that methods do not end in '()'
To Invoke Stylus methods via Ruby use the following syntax: Stylus.method()

e.g. Stylus.enable


Items listed in this section indicate methods or, in some cases, indicate parameters which will be retrieved.

Name Description Default Value
enable Enables the touch screen Device Dependant
disable Disables the touch screen Device Dependant


Remote Display

This tag does not affect the behaviour of remote display applications for controlling the device

Devices lacking support

Due to platform limitations this API is not available on the following Symbol Technologies' devices:

  1. Workabout Pro 4


RhoElements Version 1.0.0 or above
Supported Devices All supported devices.
Minimum Requirements Touch Screen.
Persistence Persistent - Changes to this module will persist when navigating to a new page.

HTML/JavaScript Examples

The following example disables the touch screen until the Enter key is pressed:

<META HTTP-EQUIV="Stylus" content="Disabled">
<META HTTP-EQUIV="OnKey0x0d" content="javascript:doTest();">

   function doTest()
Back to Top