slick-components
Version:
20 lines (19 loc) • 1.15 kB
TypeScript
import { ElementRef } from "@angular/core";
export declare class SlickUtilsService {
static newGuid(): string;
static waitForElement(elementSelector: string, iterationTimeout?: number): Promise<HTMLElement>;
static waitForElementRef(elementRef: ElementRef, iterationTimeout?: number): Promise<ElementRef>;
static getDeepObject(obj: any, objName: string): any;
static setDeepObject(obj: any, objName: string, val: any): any;
static clone(obj: any): any;
static dateSanitize(obj: any, infiniteLoopCheck?: number): any;
static round(num: number, decimals: number): number;
static checkParentClassExists(el: HTMLElement, className: string): boolean;
static checkParentIdExists(el: HTMLElement, idName: string): boolean;
static findParent(el: HTMLElement, className: string): HTMLElement;
static getClosestSibling(el: HTMLElement, className: string): HTMLElement;
static getHashCode: (str: string) => number;
static waitForTinyMCE(tinyMCEId: string): Promise<void>;
static attachElement(el: HTMLElement, attachTo: string): void;
static removeElement(el: HTMLElement): void;
}