styleDefinition()
Produces a CSS style definition with a selection and list of attributes.
Syntax
styleDefinition(
selector STRING,
attrs om.SaxAttributes )
RETURNS STRING
- selector is the style selector.
- attrs is the
om.SaxAttributesobject defining the attributes.
Usage
This function creates a CSS style definition line, from the
attribute set defined by an om.SaxAttributes object.
The attribute set must
be an om.SaxAttributes
object.
The resulting string can be used in a style list created by the styleList()
function.
styleDefinition():
- Create and fill an
om.SaxAttributesobject, - Use the
styleDefinition()function using the SAX attributes.