@stimulus-library/controllers
Version:
A library of useful controllers for Stimulus
22 lines (21 loc) • 778 B
TypeScript
import { BaseController } from "@stimulus-library/utilities";
export declare class EmptyDomController extends BaseController {
static targets: string[];
static classes: string[];
static values: {
scopeSelector: StringConstructor;
};
readonly hasContainerTarget: boolean;
readonly containerTarget: HTMLElement;
addEmptyClasses: (el?: HTMLElement) => void;
removeEmptyClasses: (el?: HTMLElement) => void;
addNotEmptyClasses: (el?: HTMLElement) => void;
removeNotEmptyClasses: (el?: HTMLElement) => void;
hasScopeSelectorValue: boolean;
scopeSelectorValue: string;
get _container(): HTMLElement;
get _children(): Element[];
connect(): void;
mutate(_entries: MutationRecord[]): void;
checkEmpty(): void;
}