processBorderWidth

[ Function ]

public static processBorderWidth(
    element: JQuery | HTMLElement[] | NodeListOf<HTMLElement> | HTMLCollectionOf<HTMLElement> | HTMLElement | undefined,
    valueNew: Partial<TcHmi.BorderWidth> | null | undefined
): void;

Sets the border width for one or more HTML elements.

Parameter

Name

Type

Description

element

Info: Type HTMLElement supported from version 1.10
Info: Types HTMLElement[] | NodeListOf<HTMLElement> | HTMLCollectionOf<HTMLElement> from version 1.10.1171.21

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

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

valueNew

Partial<TcHmi.BorderWidth>, null, undefined

Object for the width.

Return value

Type

Description

void

No return value

processBorderWidth 1:

Available from 1.8

Sample - JavaScript

var newElem = $('<div class="testdiv"></div>');
TcHmi.StyleProvider.processBorderWidth(newElem,
    {
        left: 20,
        top: 30,
        right: 40,
        bottom: 10
    }
);