- Documentation
For more complete explanations and examples please see
the extensive vignettes supplied with this package.
new(...)Create a new style declaration, specifying the field
values documented above.
setPropertyValue(property, value)Set a single style
property.
setPropertyValues(declarations)Set multiple style
properties, where declarations is a list similar to the code example
below.
getPropertyValue(property)Get the style declarations for a
single property.
asCSSRule(selector)Get this style definition in the form of
a CSS rule.
asNamedCSSStyle(styleNamePrefix)Get this style definition in
the form of a named CSS style.
getCopy(newStyleName)Get a copy of this style.
asList()Get a list representation of this style.
asJSON()Get a JSON representation of this style.