Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DomHelper

Index

Constructors

constructor

Methods

Static addCss

  • addCss(url: string): void
  • Includes the CSS from the given URL in the document.
    Can be used for dynamic laoding of web fonts, ...

    Parameters

    • url: string

    Returns void

Static addJavaScript

  • addJavaScript(url: string, callback?: Function): void
  • Includes the JavaScript from the given URL in the document. Uses async loading where supported by the browser.

    Parameters

    • url: string
    • Optional callback: Function

      Called after loaded successfully

    Returns void

Static copyToClipboard

  • copyToClipboard(src: string | HTMLElement): boolean
  • Copies either the given text or the content of the given DOM element to the clipboard

    Parameters

    • src: string | HTMLElement

    Returns boolean

    Wether copying was successful or not

Static deferAfterRendered

  • deferAfterRendered(ctrl: Base, method: Function, args?: any[], event?: string): void
  • Defer the execution of the given method until the control has actually been rendered (the afterrender event has been fired)

    Parameters

    • ctrl: Base
    • method: Function

      The method which should be executed after the control has been rendered

    • Optional args: any[]

      Arguments which should be passed to the method after the control has been rendered

    • Optional event: string

    Returns void

Static queryComponent

  • queryComponent(selector: string, root?: ExtContainer): undefined | ExtComponent
  • Extends the Ext.ComponentQuery.query method by only returning the first result instead of an array with results.
    See ExtJS docu of Ext.ComponentQuery.query for parameter description...

    Parameters

    • selector: string
    • Optional root: ExtContainer

    Returns undefined | ExtComponent

Static scrollIntoView

  • scrollIntoView(el: HTMLElement, scrollEl: HTMLElement, pos?: "Center" | "Top" | "Bottom", ifNeeded?: boolean, animateDuration?: number): void
  • Scrolls the given element into view

    !!! Note !!!

    This function hasn't been tested & used a lot so far which means that it could easily be that it won't work under all conditions (e.g. horizontal scrolling, elements with absolute positioning etc)

    Parameters

    • el: HTMLElement
    • scrollEl: HTMLElement

      The element which contains the scrollbars

    • Optional pos: "Center" | "Top" | "Bottom"
    • Optional ifNeeded: boolean
    • Optional animateDuration: number

    Returns void

Generated using TypeDoc