guides:o4w:o4w_api:o4wdatastyle

O4WDataStyle routine

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:

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 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.

  • guides/o4w/o4w_api/o4wdatastyle.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1