primeng
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primeng) [ • 3.22 kB
TypeScript
/**
* @dynamic is for runtime initializing DomHandler.browser
*
* If delete below comment, we can see this error message:
* Metadata collected contains an error that will be reported at runtime:
* Only initialized variables and constants can be referenced
* because the value of this variable is needed by the template compiler.
*/
export declare class DomHandler {
static zindex: number;
private static calculatedScrollbarWidth;
private static calculatedScrollbarHeight;
private static browser;
static addClass(element: any, className: string): void;
static addMultipleClasses(element: any, className: string): void;
static removeClass(element: any, className: string): void;
static hasClass(element: any, className: string): boolean;
static siblings(element: any): any;
static find(element: any, selector: string): any[];
static findSingle(element: any, selector: string): any;
static index(element: any): number;
static indexWithinGroup(element: any, attributeName: string): number;
static relativePosition(element: any, target: any): void;
static absolutePosition(element: any, target: any): void;
static getParents(element: any, parents?: any): any;
static getScrollableParents(element: any): any[];
static getHiddenElementOuterHeight(element: any): number;
static getHiddenElementOuterWidth(element: any): number;
static getHiddenElementDimensions(element: any): any;
static scrollInView(container: any, item: any): void;
static fadeIn(element: any, duration: number): void;
static fadeOut(element: any, ms: any): void;
static getWindowScrollTop(): number;
static getWindowScrollLeft(): number;
static matches(element: any, selector: string): boolean;
static getOuterWidth(el: any, margin?: any): any;
static getHorizontalPadding(el: any): number;
static getHorizontalMargin(el: any): number;
static innerWidth(el: any): any;
static width(el: any): any;
static getInnerHeight(el: any): any;
static getOuterHeight(el: any, margin?: any): any;
static getHeight(el: any): number;
static getWidth(el: any): number;
static getViewport(): any;
static getOffset(el: any): {
top: any;
left: any;
};
static replaceElementWith(element: any, replacementElement: any): any;
static getUserAgent(): string;
static isIE(): boolean;
static isIOS(): boolean;
static isAndroid(): boolean;
static appendChild(element: any, target: any): void;
static removeChild(element: any, target: any): void;
static removeElement(element: Element): void;
static isElement(obj: any): boolean;
static calculateScrollbarWidth(el?: HTMLElement): number;
static calculateScrollbarHeight(): number;
static invokeElementMethod(element: any, methodName: string, args?: any[]): void;
static clearSelection(): void;
static getBrowser(): any;
static resolveUserAgent(): {
browser: any;
version: any;
};
static isInteger(value: any): boolean;
static isHidden(element: HTMLElement): boolean;
static getFocusableElements(element: HTMLElement): any[];
static generateZIndex(): number;
}