For advanced users. Creates a "style" based on the attribute name and associated value (both <style> and <value> can be @FM delimited).
O4WDataStyle(ID, dataName, dataValue)
The function has the following parameters:
Parameter | Description | |
---|---|---|
id | The identifier of the style. | |
dataName | Any HTML5 data attribute. For example, data-name, data-location, etc. | |
dataValue | Any allowed value for the specific attribute. |
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.
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.