getStyleVar (Reading a style property)
Returns the value of any style property. Style properties can be listed and customized in the Styles module.
Syntax
$getStyleVar(varName[,defaultValue])
Parameter
Name |
Description |
varName |
The name of the style property (e.g. primaryColor). |
defaultValue |
The value returned if the specified style property does not exist or returns an undefined value. |
Return value
The value of the style property named 'varName' (parameter).
Example
Syntax |
Result |
$getStyleVar(primaryColor) |
#980f45 |
$getStyleVar(buttonBorderRadius) |
5px |