processContentPadding
[ Function ]
public static processContentPadding(
element: JQuery | Element[] | NodeListOf<Element> | HTMLCollectionOf<Element> | Element | undefined,
valueNew: Partial<TcHmi.FourSidedCss> | null | undefined
): void;
Sets the padding 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 Element supported from version 1.10 | JQuery, Element[], NodeListOf<Element>, HTMLCollectionOf<Element>, Element, undefined |
|
valueNew | Partial<TcHmi.FourSidedCss>, null, undefined | Value for the padding. |
Return value
Type | Description |
---|---|
void | No return value |
Available from 1.8 |
Sample - JavaScript
var newElem = $('<div class="testdiv"></div>');
TcHmi.StyleProvider.processContentPadding(newElem,
{
"left": 10,
"right": 0,
"leftUnit": "px",
"rightUnit": "px",
}
);