Module DOM

Index

Variables

Functions

Variables

rightToLeft: boolean

Functions

AbsLeft(el: HTMLElement): number

Parameters

  • el: HTMLElement

Returns

number

AbsTop(el: HTMLElement): number

Parameters

  • el: HTMLElement

Returns

number

CancelEvent(evt: Event)

Parameters

  • evt: Event

GetElementsByName(nae: string): NodeList

Parameters

  • nae: string

Returns

NodeList

GetEventCoords(evt: Event): { x: number; y: number; }

Parameters

  • evt: Event

Returns

{ x: number; y: number; }

GetEventSrcElement(evt: Event): HTMLElement

Parameters

  • evt: Event

Returns

HTMLElement

GetInnerText(el: HTMLElement): string

Parameters

  • el: HTMLElement

Returns

string

PreventDefaultNavigation(evt: Event)

Parameters

  • evt: Event

SetEvent(eventName: string, eventFunc: Function, el: HTMLElement): any

Parameters

  • eventName: string
  • eventFunc: Function
  • el: HTMLElement

Returns

any

cancelDefault(evt: Event)

Parameters

  • evt: Event