UNPKG

watch-selector

Version:

Runs a function when a selector is added to dom

44 lines 3.82 kB
/** * DOM Internal Implementation Functions * * This module contains the core implementation functions for DOM manipulation. * These functions are used by both the overloaded API (dom.ts) and the * explicit API (dom-explicit.ts). */ export declare function _impl_text_set(element: HTMLElement, content: string): void; export declare function _impl_text_get(element: HTMLElement): string; export declare function _impl_html_set(element: HTMLElement, content: string): void; export declare function _impl_html_get(element: HTMLElement): string; export declare function _impl_addClass(element: HTMLElement, ...classNames: string[]): void; export declare function _impl_removeClass(element: HTMLElement, ...classNames: string[]): void; export declare function _impl_toggleClass(element: HTMLElement, className: string, force?: boolean): boolean; export declare function _impl_hasClass(element: HTMLElement, className: string): boolean; export declare function _impl_style_set_object(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): void; export declare function _impl_style_set_property(element: HTMLElement, property: string, value: string): void; export declare function _impl_style_get_property(element: HTMLElement, property: string): string; export declare function _impl_attr_set_object(element: HTMLElement, attrs: Record<string, any>): void; export declare function _impl_attr_set_property(element: HTMLElement, name: string, value: any): void; export declare function _impl_attr_get_property(element: HTMLElement, name: string): string | null; export declare function _impl_removeAttr(element: HTMLElement, names: string[]): void; export declare function _impl_hasAttr(element: HTMLElement, name: string): boolean; export declare function _impl_prop_set_object(element: HTMLElement, props: Record<string, any>): void; export declare function _impl_prop_set_property(element: HTMLElement, name: string, value: any): void; export declare function _impl_prop_get_property(element: HTMLElement, name: string): any; export declare function _impl_data_set_object(element: HTMLElement, data: Record<string, any>): void; export declare function _impl_data_set_property(element: HTMLElement, name: string, value: any): void; export declare function _impl_data_get_property(element: HTMLElement, name: string): string | undefined; export declare function _impl_value_set(element: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, val: string): void; export declare function _impl_value_get(element: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement): string; export declare function _impl_checked_set(element: HTMLInputElement, val: boolean): void; export declare function _impl_checked_get(element: HTMLInputElement): boolean; export declare function _impl_focus(element: HTMLElement): void; export declare function _impl_blur(element: HTMLElement): void; export declare function _impl_show(element: HTMLElement): void; export declare function _impl_hide(element: HTMLElement): void; export declare function _impl_query<T extends HTMLElement = HTMLElement>(element: HTMLElement, selector: string): T | null; export declare function _impl_queryAll<T extends HTMLElement = HTMLElement>(element: HTMLElement, selector: string): T[]; export declare function _impl_parent<T extends HTMLElement = HTMLElement>(element: HTMLElement, selector?: string): T | null; export declare function _impl_children<T extends HTMLElement = HTMLElement>(element: HTMLElement, selector?: string): T[]; export declare function _impl_siblings<T extends HTMLElement = HTMLElement>(element: HTMLElement, selector?: string): T[]; export declare function _impl_batchAll<El extends HTMLElement = HTMLElement>(elements: El[], operations: Array<(element: El) => any>): void; //# sourceMappingURL=dom-internals.d.ts.map