@duoduo-oba/ng-devui
Version:
DevUI components based on Angular
31 lines (30 loc) • 970 B
TypeScript
import { ElementRef } from '@angular/core';
export declare class Utils {
/**
* Polyfill for element.matches.
* See: https://developer.mozilla.org/en/docs/Web/API/Element/matches#Polyfill
* element
*/
static matches(element: any, selectorName: string): boolean;
/**
* Applies the specified css class on nativeElement
* elementRef
* className
*/
static addClass(elementRef: ElementRef | any, className: string): void;
/**
* Removes the specified class from nativeElement
* elementRef
* className
*/
static removeClass(elementRef: ElementRef | any, className: string): void;
/**
* Gets element with valid classList
*
* elementRef
* @returns ElementRef | null
*/
private static getElementWithValidClassList;
static slice(args: any, slice?: any, sliceEnd?: any): any[];
static addElStyles(el: any, styles: any): void;
}