processFillColor
[ Function ]
public static processFillColor(
element: Jquery<SVGElement | HTMLElement> | readonly SVGElement[] | NodeListOf<SVGElement> | HTMLCollectionOf<SVGElement> | SVGElement | undefined,
valueNew: TcHmi.Color | null | undefined
): void;
Sets the fill color for one or more SVG elements.
Parameter
Name | Type | Description |
---|---|---|
element Info: Type SVGElement supported from version 1.10 | JQuery<SVGElement | HTMLElement>, readonly SVGElement[], NodeListOf<SVGElement>, HTMLCollectionOf<SVGElement>, SVGElement, undefined |
|
valueNew | Object for the color. |
Return value
Type | Description |
---|---|
void | No return value |
Available from version 1.10 |
Sample - JavaScript
var newElem = dummyControl.getElement().find('rect'); // SVG rect as a control child
TcHmi.StyleProvider.processFillColor(newElem,
{color: 'red'}
);