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