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
Info: Types Element[] | NodeListOf<Element> | HTMLCollectionOf<Element> from version 1.10.1171.21

JQuery, Element[], NodeListOf<Element>, HTMLCollectionOf<Element>, Element, undefined

  • jQuery collection with the elements to be changed
  • any array-like element list (also for example from document.querySelectorAll() or document.getElementsByClassName())
  • individual element, for example HTML or SVG element

valueNew

TcHmi.FontStyle, null

Value for the font style.

Return value

Type

Description

void

No return value

processFontStyle 1:

Available from 1.8

Sample - JavaScript

var newElem = $('<div class="testdiv"></div>');
TcHmi.StyleProvider.processFontStyle(newElem,
    'Italic'
);