isSolidColor
[ Function ]
export function isSolidColor(checkColor: any): boolean;
Checks if the passed parameter is of type TcHmi.SolidColor.
Parameter
Name | Type | Description |
---|---|---|
checkColor | Variable to be tested |
Return value
Type | Description |
---|---|
Returns true if it is a valid SolidColor, otherwise false. |
Available from 1.8 |
Sample - JavaScript
if (TcHmi.isSolidColor(this.__myColor)){
// use the color
} else {
// reset color
};