processFontStyle
[ Function ]
public static processFontStyle(
element: JQuery | Element[] | NodeListOf<Element> | HTMLCollectionOf<Element> | Element | undefined,
valueNew: TcHmi.FontStyle | null | undefined
): void;
Sets the font style 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 style. |
Return value
Type | Description |
---|---|
void | No return value |
Available from 1.8 |
Sample - JavaScript
var newElem = $('<div class="testdiv"></div>');
TcHmi.StyleProvider.processFontStyle(newElem,
'Italic'
);