|
css()
Gets the value of a style property for the first element in the set of HTML elements that match the selector of the script or of another query in the template (see query()), or sets one or more CSS properties for every element in the set. css(styleName) : StringReturns the value of the specified CSS property. propertyName String; the name of the CSS property. ExamplesThis script stores the text color of the
The following script looks up an element with the ID #calloutbox and stores its background color in a variable.
css(styleName, value)Function to set a CSS property. propertyName String; the name of the CSS property. value String; value for the CSS property or a map of property-value pairs to set. ExamplesThis script looks up an element with the ID #calloutbox and sets its text color to red.
The following script does the same, but it only sets the text color to red if in the current record the value of the field 'accounttype' is 'PRO'.
This script sets the text color of the results to a hexadecimal color code.
This script loads a snippet into a variable. Then it finds/replaces text in the snippet and applies a css property to the replacing text.
css(properties)Function to set one or multiple CSS properties. properties Array; map of property-value pairs to set. ExamplesThis script colors the text of the
|
|