Module UIUtility

Index

Functions

Functions

calculateOffsetLeft(elem: HTMLElement): number

Parameters

  • elem: HTMLElement

Returns

number

calculateOffsetTop(elem: HTMLElement): number

Parameters

  • elem: HTMLElement

Returns

number

cancelEvent(evt: Event)

Parameters

  • evt: Event

clearChildNodes(elem: HTMLElement)

Parameters

  • elem: HTMLElement

createHtmlInputCheck(isChecked: boolean): HTMLInputElement

Parameters

  • isChecked: boolean

Returns

HTMLInputElement

createHtmlInputText(text: string): HTMLInputElement

Parameters

  • text: string

Returns

HTMLInputElement

focusValidOnThisNode(elem: HTMLElement): boolean

Parameters

  • elem: HTMLElement

Returns

boolean

generateRandomElementId(): string

Returns

string

getInnerText(elem: HTMLElement): string

Parameters

  • elem: HTMLElement

Returns

string

hideElement(elem: HTMLElement)

Parameters

  • elem: HTMLElement

insertAfter(elem: HTMLElement, targetElement: HTMLElement)

Parameters

  • elem: HTMLElement
  • targetElement: HTMLElement

insertBefore(elem: HTMLElement, targetElement: HTMLElement)

Parameters

  • elem: HTMLElement
  • targetElement: HTMLElement

isNodeOfType(elem: HTMLElement, tagNames: Array<string>): boolean

Parameters

  • elem: HTMLElement
  • tagNames: Array<string>

Returns

boolean

isSvgNode(elem: HTMLElement): boolean

Parameters

  • elem: HTMLElement

Returns

boolean

isTextNode(elem: HTMLElement): boolean

Parameters

  • elem: HTMLElement

Returns

boolean

removeNode(elem: HTMLElement)

Parameters

  • elem: HTMLElement

setInnerText(elem: HTMLElement, value: string)

Parameters

  • elem: HTMLElement
  • value: string

showElement(elem: HTMLElement)

Parameters

  • elem: HTMLElement