JqmOptions Method (RUNTIME)
PLB Web Only, 10.0
The JqmOptions method sets global JQuery Mobile options used by the PWS runtime to control\customize the JQuery Mobile visual properties\attributes for WINDOW objects (i.e., pages) when they are created. The method uses the following format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
Optional. A Program Execution Label.
Required. A RUNTIME object that has been previously declared.
Optional. A a Numeric Variable that returns the pass\failure values for the execution of the method.
Optional. A Character String Variable or string or literal that specifies a html string that is used as the page header. If this parameter is not used, the default is to not have a page header.
Optional. A Character String Variable or string or literal that specifies a html string that is used as the page footer. If this parameter is not used, the default is to not have a page footer.
Flags Affected: OVER, ZERO
Note the following:
The ZERO flag is always set when the {return} value is zero which indicates that the method execution was successful. The ZERO flag is clear if the {return} value is not zero which indicates that the method execution failed.
The OVER flag is set if the {return} variable is too small to receive the numeric result.
This method only takes affect when the PWS runtime is executing in the JQuery Mobile mode. The JQuery Mobile mode is activated when the '.plm' or 'plcm' mime type starts the PL/B program in the client browser URL string.
The {transition} value can be one of the following words: fade, pop, flip, turn, flow, slidefade, slide, slideup, slidedown, or none.
A demonstration of the {transition} can be found at the following link:
http://demos.jquerymobile.com/1.4.5/transitions/
The Sunbelt sample program named 'jqmsamp' uses advanced PLB operations to demonstrate the PL/B jQuery Mobile Support. See the zip file named 'DemoJqmSamp.zip' found in the 'demo' directory for a PL/B Web Server as follows:
c:\sunbelt\plbwebsrv.10x\demo
The {options} bitmask value allows for special options to be specified when a jQuery page is created. The {options} bitmask values are described as follows:
|
Keyword |
Value |
Description |
|
$JQMOPT_AUTO_ENHANCE |
1 |
Automatically enhance basic controls. This option enhances the following objects: BUTTON, CHECKBOX, and RADIOBUTTON. Each enhanced control will have the height and fontsize properties overridden by the enhancement option. |
|
$JQMOPT_FIXED_HDRFTR |
2 |
Fix header and footer to top and bottom of a WINDOW. |
|
$JQMOPT_KEEP_OPTIONS |
4 |
Keep all JQM options through a PL/B CHAIN statement operation. |
|
$JQMOPT_NO_BGCOLOR |
8 |
Do not use background color properties. |
The {return} value always returns the numeric result of zero when this method is executed with JQuery Mobile in use. If this method is executed when the JQuery Mobile is not used, a value of one is always returned.
Example JqmOptions Statements where R is a RUNTIME object:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See Also: RUNTIME, RUNTIME Methods, Method Syntax
![]() |