processContentHorizontalAlignment
[ Function ]
public static processContentHorizontalAlignment(
element: JQuery | HTMLElement[] | NodeListOf<HTMLElement> | HTMLCollectionOf<HTMLElement> | HTMLElement | undefined,
valueNew: TcHmi.HorizontalAlignment | null | undefined
): void;
Sets the alignment for one or more HTML elements. Note that the child elements are positioned here, not the element itself.
Parameter
Name | Type | Description |
---|---|---|
element Info: Type HTMLElement supported from version 1.10 | JQuery, HTMLElement[], NodeListOf<HTMLElement>, HTMLCollectionOf<HTMLElement>, HTMLElement, undefined |
|
valueNew | Value for the alignment. |
Return value
Type | Description |
---|---|
void | No return value |
Available from 1.8 |
Sample - JavaScript
var newElem = $('<div class="testdiv"></div>');
TcHmi.StyleProvider.processContentHorizontalAlignment(newElem,
'Center'
);