voltmx.ui Namespace
Functions
The voltmx.ui Namespace contains the following functions.
voltmx.ui.ActionItem
Constructs an ActionItem
object for use in an ActionSheet object.
Syntax
Input Parameters
actionItemParams
A JavaScript object containing key-value pairs that define the configuration parameters for the action item. This object must contain the following keys.
Constant | Description |
---|---|
title | A string that specifies the title for the action item. |
style | A value from the Action Item Style Constants that selects the style of the action item. |
actionCallback | A JavaScript function that handles user selections from the action item. For more information, see Remarks below. |
Example
Return Values
Returns an ActionItem
object that can be added to an Action Sheet.
Remarks
The actionCallback
function, which is passed into this function through the actionSheetParams parameter, must have the following prototype.
where actionSheetObject is a handle to the ActionSheet
object that the ActionItem
object is associated with, and actionItem1 is a handle to the ActionItem
object that the user selected.
Platform Availability
iOS
voltmx.ui.ActionSheet
Constructs an ActionSheet
object that represents an iOS Action Sheet.
Syntax
Input Parameters
actionSheetParams
A JavaScript object containing key-value pairs that define the configuration parameters for the Action Sheet. This object must contain the following keys.
Key | Description |
---|---|
title | A string that specifies the title for the Action Sheet. |
message | A string containing the action sheet’s message to display to the user. |
showCompletionCallback | A callback function that is invoked after the display of the action sheet. For details, see the Remarks section below. |
Example
Return Values
Returns an ActionSheet
object.
Remarks
The actionSheetParams parameter is an object containing key-value pairs. When your app uses the showCompletionCallback
key, it specifies a callback function that is automatically invoked after your app displays the action sheet. The callback function must have the following signature.
In an Action Sheet, only one action item can have the style constants.ACTION_ITEM_STYLE_CANCEL
.
Platform Availability
iOS
voltmx.ui.Alert
This API provides you the ability to add alerts in the application. The alerts are of the following types:
- information - an informative message is displayed on the screen. This message can be in turn a warning or a success message.
- confirmation - a confirmation message with Yes and No options is displayed on the screen.
- error - an error message is displayed on the screen.
All the alerts are modal in nature, i.e., the user cannot proceed with other UI operations unless the alert is dismissed.
Syntax
Input Parameters
basicConfig
basicConfig is an object with the following configuration properties.
Property | Description |
---|---|
message [String] - Mandatory | The message to be shown when an alert is thrown. |
alertType [Number] - Mandatory | Denotes the type of the alert. The possible values are as follows:ALERT_TYPE_CONFIRMATIONALERT_TYPE_ERRORALERT_TYPE_INFO |
alertTitle [String] - Optional | Title of the alert. |
yesLabel [String] - Optional | Text to be displayed for the Yes label. If the text for the Yes label is not provided, individual platforms display default values. |
noLabel [String] - Optional | Text to be displayed for the No label. If the text for the No label is not provided, individual platforms display default values. |
alertIcon [String / image Object] - Optional | Icon to be displayed to visually indicate the type of alert, such as, Info, Error, Confirmation. This parameter is not supported on iPhone. You can create an image Object by using voltmx.image Namespace functions. |
alertHandler [Read / Write Event] - Mandatory | JavaScript function that should get called when alert is dismissed either through “yes” label button or through “no” label button. |
pspConfig
pspConfig is an object with platform specific configuration properties.
Property | Description |
---|---|
ondeviceback [Write Event] - Optional | JavaScript function that should get called when alert is open and the device back button is pressed.> Note: Supported on Windows platform.var pspConf = { ondeviceback: func1 }; var confirmationAlert = voltmx.ui.Alert(basicConf, pspConf); function func1() { voltmx.print(“Example function on device back”); } > Note: The configuration properties should be passed only in the respective configuration objects otherwise they are ignored. |
contentAlignment | Used to align content of an alert. Following are the values of this property: constants.ALERT_CONTENT_ALIGN_LEFT // defaultconstants.ALERT_CONTENT_ALIGN_CENTERconstants.ALERT_CONTENT_ALIGN_RIGHT |
iconPosition | It is used to align and alert title icon. Following are the values of this property: constants.ALERT_ICON_POSITION_LEFT // defaultconstants.ALERT_ICON_POSITION_RIGHT> Note: Refer the example given below to create an alert using contentAlignment and iconPostion parameters. |
Example
Return Values
None.
Remarks
Invoking this API multiple times in the same action sequence leads to an erroneous behavior.
This API should be invoked at the end of a function as a best practice.
The following are the behavioral aspects of alerts on various platforms:
RichClient
In all native implementations alert is non blocking, i.e. the execution of any logic defined after the alert definition continues without the alert confirmation.
Important: Alert images are not supported on Windows 10.
Android
Android platform supports display of multiple alerts each time the voltmx.ui.Alert API is invoked. On device back, the alert gets dismissed and also the alert handler is raised.
For CONFIRMATION type alert, the alert callback is invoked with cancel flag. For example, false Boolean argument.
For INFO & ERROR type alert, the alert callback is invoked with true argument.
iPhone
iPhone does not support displaying image icons based on the alert types: info,confirmation, error. ”\n” as a newline character in the alert messages supported for iPhone Platform
Mobile Web/SPA/Desktop Web
- For advanced Mobile Web devices like iPhone, Android, and Palm Pre, alerts are displayed as popups. For basic devices, the alerts are displayed in a new page.
- For all platforms you cannot customize alert icons/yes or no labels/ look and feel.
- Titles of the alerts are provided by the browser and you cannot modify them. The alert title attribute does not apply for Mobile Web. Usually, the title on the alert will be the IP address or the domain name of the application.
- Confirmation alerts in the basic devices will be displayed in another form.
- If the alert message is nil, alert is not displayed.
- In case of all platforms, the execution of the logic defined after alert is blocked until the user clicks “yes” or “no”.
For JavaScript conversion, an alert has to be created using another variant constructor,i.e an Indexed argument constructor.
Platform Availability
Available on all platforms.
voltmx.ui.ARRenderer
Creates the ARRenderer widget. It occupies some space on a form depending on its positional and dimensional properties.
Syntax
Input Parameters
Parameter | Description |
---|---|
arBasic | A JavaScript object containing key-value pairs. The keys are the names of the ARRenderer widget’s basic properties and the values are the initial values of the properties. For a complete list of the ARRenderer widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
arLayout | A JavaScript object containing key-value pairs. The keys are the names of the ARRenderer widget’s layout properties and the values are the initial values of the properties. For a complete list of the ARRenderer widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
arPsp | A JavaScript object containing key-value pairs. The keys are the names of the ARRenderer widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the ARRenderer widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated and configured ARRenderer
widget.
Platform Availability
Android, iOS
voltmx.ui.BarButtonItem
BarButtonItem
Syntax
Input Parameters
options
A JavaScript object containing key-value pairs that the constructor uses to set the configuration of the BarButtonItem
object. The following keys are supported.
Key | Description |
---|---|
type | Specifies the type of the BarButtonItem . Must be one of the ButtonBarItem Type Constants. |
tintColor | Selects the color to apply to the BarButtonItem . Must be specified as a hexadecimal value. |
style | Sets the style of the BarButtonItem . Must be one of the Bar Item Style Constants. |
enabled | Holds a Boolean value that enables or disables the BarButtonItem . |
action | Contains a function that is automatically called when the user selects the BarButtonItem . |
metaData | Holds the data needed by the BarButtonItem . For more information see Remarks below. |
Example
Return Values
Returns an instantiated and configured BarButtonItem
object.
Remarks
The kind of data needed by the BarButtonItem
in its metaData
key in the options
parameter varies depending on the type of the BarButtonItem
that is being created. The value for the metaData
key can be any of the following.
constants.BAR_BUTTON_IMAGE
Set the value for the metaData
key to a string containing the name of an image.
constants.BAR_BUTTON_TITLE
Set the value for the metaData
key to a string containing the title for the button.
constants.BAR_BUTTON_SYSTEM_ITEM
Set the value for the metaData
key to a value from the System Item Constants.
constants.BAR_BUTTON_CUSTOM
Set the value for the metaData
key to a widget reference. Only the Label
and Button
widgets can be set as a widget reference. For these widgets, the following properties are supported.
Widget | Properties |
---|---|
Button | text, displayText, skin, focusSkin, width, height, onClick |
Label | text, skin, width, height |
voltmx.ui.Browser
Creates a Browser widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the Button widget’s basic properties and the values are the initial values of the properties. For a complete list of the Button widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the Button widget’s layout properties and the values are the initial values of the properties. For a complete list of the Button widget’s properties, see the Volt MX IrisWidget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the Button widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Button widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Browser
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.BrowserSettings.getSafeBrowsingPrivacyPolicyUrl
Returns a URL that points to the privacy policy for Safe Browsing reporting, which is displayed to end users if you want a custom interstition.
Syntax
Example
Type
Static
Input Parameters
None
Return Values
String - The URL that points to a privacy policy document that can be displayed to end users. Returns null if the device API Level is earlier than 27.
Platform Availability
- Android (API Level 27 and later)
voltmx.ui.BrowserSettings.setOnSafeBrowsingInitializedCallback
This API is used to set an event callback that is triggered once the Safe Browsing initialization process is completed.
The URL is not guaranteed to be protected by Safe Browsing until after the callback is invoked with true. Safe Browsing is not fully supported on all devices. For those devices, callback will receive false.
For optimal protection against known threats, you must wait until the onSafeBrowsingInitialized callback is triggered with true before you invoke a Browser widget object’s loadUrl() method.
Syntax
Input Parameters
Parameter | Description |
---|---|
eventCallback | The callback function that is triggered once the Safe Browsing initialization process is completed with the following parameter. |
Event Callback Syntax
Input Parameters
Parameter | Description |
---|---|
initStatus | The value of this parameter is true if the initialization is successful; otherwise, the value is false or it may be null. For Android devices with API level earlier than 27, the callback will not be triggered. |
Example
Type
static
Platform Availability
- Android (API Level 27 and later)
voltmx.ui.BrowserSettings.setSafeBrowsingWhitelist
Sets the list of hosts (domain names/IP addresses) that are exempt from SafeBrowsing checks. The list of such hosts is global for all Browser widgets across any application.
The following table illustrates the rules that are applicable for different hosts.
Rule | Example | Matches Subdomain |
HOSTNAME | example.com | Yes |
.HOSTNAME | example.com | Yes |
IPV4_LITERAL | 192.168.1.1 | No |
IPV6_LITERAL_WITH_BRACKETS | [10:20:30:40:50:60:70:80] | No |
All other rules, including wildcards, are not valid. The correct syntax for hosts is defined by RFC 3986.
Syntax
Type
Static
Input Parameters
Parameter | Description |
---|---|
Array - Mandatory | A mandatory array of the list of hosts. |
callback [Function] | A JavaScript function that will be called with value as “true,” if the hosts are successfully added to the whitelist. The callback function will be called with value as “false,” if any hosts are malformed. This value may be null. |
Example
Platform Availability
- Android (API Level 27 and later)
voltmx.ui.Button
Creates a Button widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the Button widget’s basic properties and the values are the initial values of the properties. For a complete list of the Button widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the Button widget’s layout properties and the values are the initial values of the properties. For a complete list of the Button widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the Button widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Button widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Button
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.Calendar
Creates a Calendar widget.
Syntax
Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the Calendar widget’s basic properties and the values are the initial values of the properties. For a complete list of the Calendar widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the Calendar widget’s layout properties and the values are the initial values of the properties. For a complete list of the Calendar widget’s properties, see the Volt MX IrisWidget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the Calendar widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Calendar widget’s properties, see the VoltMX IrisWidget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Calendar
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.Camera
Creates a Camera widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the Camera widget’s basic properties and the values are the initial values of the properties. For a complete list of the Camera widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the Camera widget’s layout properties and the values are the initial values of the properties. For a complete list of the Camera widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the Camera widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Camera widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Camera
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.Canvas
Creates a Canvas widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the Canvas widget’s basic properties and the values are the initial values of the properties. For a complete list of the Canvas widget’s properties, see the Volt MX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the Canvas widget’s layout properties and the values are the initial values of the properties. For a complete list of the Canvas widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the Canvas widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Canvas widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Canvas
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.CheckBoxGroup
Creates a CheckBoxGroup widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the CheckBoxGroup widget’s basic properties and the values are the initial values of the properties. For a complete list of the CheckBoxGroup widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the CheckBoxGroup widget’s layout properties and the values are the initial values of the properties. For a complete list of the CheckBoxGroup widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the CheckBoxGroup widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the CheckBoxGroup widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated CheckBoxGroup
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.ComboBox
Creates a ComboBox widget.
Syntax
Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the ComboBox widget’s basic properties and the values are the initial values of the properties. For a complete list of the ComboBox widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the ComboBox widget’s layout properties and the values are the initial values of the properties. For a complete list of the ComboBox widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the ComboBox widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the ComboBox widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns a ComboBox
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.createAnimation Function
Creates an object that defines an animation.
Syntax
Input Parameters
| Parameter | Description | | — | — | | animationDefinition | An object that defines the transformations to perform during the animation. |
Example
Return Values
Returns an instantiated animation
object.
voltmx.ui.DataGrid
Creates a DataGrid widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
dgridBasic | A JavaScript object containing key-value pairs. The keys are the names of the DataGrid widget’s basic properties and the values are the initial values of the properties. For a complete list of the DataGrid widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
dgridLayout | A JavaScript object containing key-value pairs. The keys are the names of the DataGrid widget’s layout properties and the values are the initial values of the properties. For a complete list of the DataGrid widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
dgridPSP | A JavaScript object containing key-value pairs. The keys are the names of the DataGrid widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the DataGrid widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated DataGrid
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.defineExtendedWidget
Every widget used in Volt MX Iris has its own set of properties, methods and events. From V9 SP2, you can use the voltmx.ui.defineExtendedWidget
, to provide enhancements to the existing widgets for a specific business requirement without impairing the existing functionalities of the widget. For example, you can extend the capabilities of a Label widget to automatically add the symbol $
at the starting of the text.
For more information, refer the Widget Extensions section in Volt MX Iris User guide.
Note: From V9 SP2 release, you can extend the following basic Volt MX widgets, Button, Image, Label, Switch, TextArea, and TextBox.
Syntax
Input Parameters
Parameter | Description |
---|---|
chilWdg | A String value containing the namespace to be used by the customized widget. |
baseWidget | A JavaScript Object containing the base Volt MX class that is extended, such as voltmx.ui.Label . |
protoFuncDict | A JavaScript object containing the user defined methods for the extended widget. This parameter must have the definition of preInitialializeCall method. For more information about this method, refer the Remarks section. |
Remarks
The protoFuncDict
argument inside the voltmx.ui.defineExtendedWidget
API, contains the preInitializeCall
method to define all the properties of the widget. This method contains the following:
- Initializations of the properties of the Volt MX widget.
- The function call of the base class widget constructor (like
voltmx.ui.Label.call(this, bconfig, lconfig, pspconfig);
) - The new customized properties with their setters and getters.
Here is an example of this method for a Label widget.
Limitations
- You cannot override the existing properties of the Volt MX widget.
- You cannot view the extended properties of the Volt MX widget, if you use alert to display the properties of the extended widget.
- When you pass a custom property in the constructor, the property is not updated until the user updates explicitly.
- You cannot use multi-level inheritance while using widget extension.
- You cannot override the existing methods of the existing Volt MX widget class.
- Extended widget is not supported in the widgets placed inside the Segment widget.
Error Codes
Error Codes | Description |
---|---|
4001 | This error code is thrown when at least one parameter inside voltmx.ui.defineExtendedWidget API is not defined. |
4002 | This error code is thrown when the protoFuncDict parameter is not defined as a JSON object. |
4003 | This error code is thrown when the name of the extended widget class in the childWdg parameter is not a String. |
4004 | This error code is thrown when the Volt MX widget class provided in the chilWdg parameter is not a registered class. |
4005 | This error code is thrown when the preInitialializeCall method is not provided in the voltmx.ui.defineExtendedWidget API. |
4006 | This error code is thrown when the name provided in the childWdg parameter is already a Volt MX widget class. |
Example
Return Values
Returns an instance of the extended widget.
voltmx.ui.FlexContainer
Creates a FlexContainer widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexContainer widget’s basic properties and the values are the initial values of the properties. For a complete list of the FlexContainer widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexContainer widget’s layout properties and the values are the initial values of the properties. For a complete list of the FlexContainer widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexContainer widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the FlexContainer widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated FlexContainer
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.FlexScrollContainer
Instantiates a FlexScrollContainer
widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexScrollContainer widget’s basic properties and the values are the initial values of the properties. For a complete list of the FlexScrollContainer widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexScrollContainer widget’s layout properties and the values are the initial values of the properties. For a complete list of the FlexScrollContainer widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexScrollContainer widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the FlexScrollContainer widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns a FlexScrollContainer
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information
voltmx.ui.Form2
Creates a new FlexForm
widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexForm widget’s basic properties and the values are the initial values of the properties. For a complete list of the FlexForm widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexForm widget’s layout properties and the values are the initial values of the properties. For a complete list of the FlexForm widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the FlexForm widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the FlexForm widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns a FlexForm
widget.
Remarks
FlexForms created with this function are the recommended type of form to use in your applications. Legacy box forms should not be used in new software.
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.HorizontalImageStrip2
Creates a HorizontalImageStrip widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
hImgBasic | A JavaScript object containing key-value pairs. The keys are the names of the HorizontalImageStrip widget’s basic properties and the values are the initial values of the properties. For a complete list of the HorizontalImageStrip widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
hImgLayout | A JavaScript object containing key-value pairs. The keys are the names of the HorizontalImageStrip widget’s layout properties and the values are the initial values of the properties. For a complete list of the HorizontalImageStrip widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
hImgPSP | A JavaScript object containing key-value pairs. The keys are the names of the HorizontalImageStrip widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the HorizontalImageStrip widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated HorizontalImageStrip
object.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.Image2
Creates an Image widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the Image widget’s basic properties and the values are the initial values of the properties. For a complete list of the Image widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the Image widget’s layout properties and the values are the initial values of the properties. For a complete list of the Image widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the Image widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Image widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Image
widget.
Remarks
The Image widget, like all widgets, is a UI element that you can place of forms when you design your program or add programmatically at runtime. It simply displays images on the screen. The Image
widget is different from the Image object, which encapsulates images in code for cropping, scaling, and other similar operations.
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.ImageGallery
Creates an ImageGallery widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
imgGalBasic | A JavaScript object containing key-value pairs. The keys are the names of the ImageGallery widget’s basic properties and the values are the initial values of the properties. For a complete list of the ImageGallery widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
imgGalLayout | A JavaScript object containing key-value pairs. The keys are the names of the ImageGallery widget’s layout properties and the values are the initial values of the properties. For a complete list of the ImageGallery widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
imgGalPSP | A JavaScript object containing key-value pairs. The keys are the names of the ImageGallery widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the ImageGallery widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated ImageGallery
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.Label
Creates a Label widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
basicConfig | A JavaScript object containing key-value pairs. The keys are the names of the Label widget’s basic properties and the values are the initial values of the properties. For a complete list of the Label widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
layoutConfig | A JavaScript object containing key-value pairs. The keys are the names of the Label widget’s layout properties and the values are the initial values of the properties. For a complete list of the Label widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pspConfig | A JavaScript object containing key-value pairs. The keys are the names of the Label widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Label widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Label
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.Line
Creates a Line widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
lineBasicConf | A JavaScript object containing key-value pairs. The keys are the names of the Line widget’s basic properties and the values are the initial values of the properties. For a complete list of the Line widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
lineLayoutConf | A JavaScript object containing key-value pairs. The keys are the names of the Line widget’s layout properties and the values are the initial values of the properties. For a complete list of the Line widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
linePSPConf | A JavaScript object containing key-value pairs. The keys are the names of the Line widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Line widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Line
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.Link
Creates a Link
widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
linkBasic | A JavaScript object containing key-value pairs. The keys are the names of the Link widget’s basic properties and the values are the initial values of the properties. For a complete list of the Link widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
linkLayout | A JavaScript object containing key-value pairs. The keys are the names of the Link widget’s layout properties and the values are the initial values of the properties. For a complete list of the Link widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
linkPSP | A JavaScript object containing key-value pairs. The keys are the names of the Link widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Link widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Link
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.ListBox
Creates a ListBox widget.
Syntax
Parameters
Parameter | Description |
---|---|
listBasic | A JavaScript object containing key-value pairs. The keys are the names of the ListBox widget’s basic properties and the values are the initial values of the properties. For a complete list of the ListBox widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
listLayout | A JavaScript object containing key-value pairs. The keys are the names of the ListBox widget’s layout properties and the values are the initial values of the properties. For a complete list of the ListBox widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
listPSP | A JavaScript object containing key-value pairs. The keys are the names of the ListBox widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the ListBox widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated ListBox
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.Map
Creates a Map widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
mapBasicConf | A JavaScript object containing key-value pairs. The keys are the names of the Map widget’s basic properties and the values are the initial values of the properties. For a complete list of the Map widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
mapLayoutConf | A JavaScript object containing key-value pairs. The keys are the names of the Map widget’s layout properties and the values are the initial values of the properties. For a complete list of the Map widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
mapPSPConf | A JavaScript object containing key-value pairs. The keys are the names of the Map widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Map widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Map
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.makeAffineTransform
Creates a transformation object that can be used in an animation definition.
Syntax
Example
Input Parameters
None.
Return Vales
An object that can be used to specify a transformation.
voltmx.ui.MLCamera
Creates a MLCamera widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
mlCamBasic | A JavaScript object containing key-value pairs. The keys are the names of the MLCamera widget’s basic properties and the values are the initial values of the properties. For a complete list of the MLCamera widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
mlCamLayout | A JavaScript object containing key-value pairs. The keys are the names of the MLCamera widget’s layout properties and the values are the initial values of the properties. For a complete list of the MLCamera widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
mlCamPsp | A JavaScript object containing key-value pairs. The keys are the names of the MLCamera widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the MLCamera widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated MLCamera
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.PDFView
Creates the PDFView widget. It occupies some space on a form depending on its positional and dimensional properties.
Syntax
Input Parameters
| Parameter | Description |
| — | — |
| pdfBasic | A JavaScript object containing key-value pairs. The keys are the names of the PDFView
widget’s basic properties and the values are the initial values of the properties. For a complete list of the PDFView
widget’s properties, see the Widget Programmer’s Guide. |
| pdfLayout | A JavaScript object containing key-value pairs. The keys are the names of the PDFView
widget’s layout properties and the values are the initial values of the properties. For a complete list of the PDFView
widget’s properties, see the Widget Programmer’s Guide. |
| pdfPsp | A JavaScript object containing key-value pairs. The keys are the names of the PDFView
widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the PDFView
widget’s properties, see the Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated and configured PDFView
widget.
Platform Availability
iOS
voltmx.ui.Phone
Creates a Phone widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
phBasicConf | A JavaScript object containing key-value pairs. The keys are the names of the Phone widget’s basic properties and the values are the initial values of the properties. For a complete list of the Phone widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
phLayoutConf | A JavaScript object containing key-value pairs. The keys are the names of the Phone widget’s layout properties and the values are the initial values of the properties. For a complete list of the Map widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
phPSPConf | A JavaScript object containing key-value pairs. The keys are the names of the Phone widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Phone widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Phone
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.PickerView
Creates a PickerView widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
pickerBasic | JavaScript object containing key-value pairs. The keys are the names of the PickerView widget’s basic properties and the values are the initial values of the properties. For a complete list of the PickerView widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pickerLayout | A JavaScript object containing key-value pairs. The keys are the names of the PickerView widget’s layout properties and the values are the initial values of the properties. For a complete list of the PickerView widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
pickerPSP | A JavaScript object containing key-value pairs. The keys are the names of the PickerView widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the PickerView widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated PickerView
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.RadioButtonGroup
Creates a RadioButtonGroup widget
Syntax
Input Parameters
Parameter | Description |
---|---|
radioBasic | A JavaScript object containing key-value pairs. The keys are the names of the RadioButtonGroup widget’s basic properties and the values are the initial values of the properties. For a complete list of the RadioButtonGroup widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
radioLayout | A JavaScript object containing key-value pairs. The keys are the names of the RadioButtonGroup widget’s layout properties and the values are the initial values of the properties. For a complete list of the RadioButtonGroup widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
radioPSP | A JavaScript object containing key-value pairs. The keys are the names of the RadioButtonGroup widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the RadioButtonGroup widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated RadioButtonGroup
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.
voltmx.ui.signInWithApple
Creates the SignInWithApple widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
signInWithAppleBasic | A JavaScript object containing key-value pairs. The keys are the names of the SignInWithApple widget’s basic properties and the values are the initial values of the properties. For a complete list of the SignInWithApple widget’s properties, see the Widget Programmer’s Guide. |
signInWithAppleLayout | A JavaScript object containing key-value pairs. The keys are the names of the SignInWithApple widget’s layout properties and the values are the initial values of the properties. For a complete list of the SignInWithApple widget’s properties, see the Widget Programmer’s Guide. |
signInWithApplePsp | A JavaScript object containing key-value pairs. The keys are the names of the SignInWithApple widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the SignInWithApple widget’s properties, see the Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated and configured PDFView
widget.
Platform Availability
iOS
voltmx.ui.Toast
Creates a Toast
object.
Important: The voltmx.ui.Toast function is only available for the Android platform.
Syntax
Input Parameters
Parameter | Description |
---|---|
configParams | A JavaScript object that contains key-value pairs that provide the configuration of the toast to be created. The following keys are supported. text: The text for the toast to display.duration: The duration of time that the toast appears on the screen. This must be set to one of the Toast Duration Constants. |
Example
Return Values
Returns an instantiated Toast Object.
Platform Availability
- Android
voltmx.ui.Video
Creates a Video widget.
Syntax
Input Parameters
Parameter | Description |
---|---|
vidBasicConf | A JavaScript object containing key-value pairs. The keys are the names of the Video widget’s basic properties and the values are the initial values of the properties. For a complete list of the Video widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
vidLayoutConf | A JavaScript object containing key-value pairs. The keys are the names of the Video widget’s layout properties and the values are the initial values of the properties. For a complete list of the Video widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
vidPSPConf | A JavaScript object containing key-value pairs. The keys are the names of the Video widget’s platform-specific properties and the values are the initial values of the properties. For a complete list of the Video widget’s properties, see the VoltMX Iris Widget Programmer’s Guide. |
Example
Return Values
Returns an instantiated Video
widget.
Remarks
All writable properties can be optionally passed inside dictionary objects to the constructor. Unspecified properties or an empty constructor results in the defaults values being used for all unprovided information.