processFontFamily
[ Function ]
public static processFontFamily(
element: JQuery | Element[] | NodeListOf<Element> | HTMLCollectionOf<Element> | Element | undefined,
valueNew: string | null | undefined
): void;
Sets the font family for one or more HTML or SVG elements.
Parameter
Name | Type | Description |
---|---|---|
element Info: Type Element supported from version 1.10 | JQuery, Element[], NodeListOf<Element>, HTMLCollectionOf<Element>, Element, undefined |
|
valueNew | Value for the font family. |
Return value
Type | Description |
---|---|
void | No return value |
Available from 1.8 |
Sample - JavaScript
var newElem = $('<div class="testdiv"></div>');
TcHmi.StyleProvider.processFontFamily(newElem,
'monospace'
);