Table of Contents

O4WDataStyle routine

Description

For advanced users. Creates a "style" based on the attribute name and associated value (both <style> and <value> can be @FM delimited).

Syntax

O4WDataStyle(ID, dataName, dataValue)

Parameters

The function has the following parameters:

ParameterDescription
idThe identifier of the style.
dataNameAny HTML5 data attribute. For example, data-name, data-location, etc.
dataValueAny allowed value for the specific attribute.

Returns

Returns the style information (to use immediately with a display element or input control), and (if <stylename> is not null) defines the style by the stylename for use with one or more elements and input controls.

Remarks

Using this API, you can create your own HTML5 "data" attributes. You can also specify values that are needed by pre-defined styles, such as those defined by jQuery.