@stimulus-library/controllers
Version:
A library of useful controllers for Stimulus
16 lines (15 loc) • 555 B
TypeScript
import { BaseController } from "@stimulus-library/utilities";
export declare class StickyController extends BaseController {
static classes: string[];
static values: {
mode: StringConstructor;
};
addStuckClasses: (el?: HTMLElement) => void;
removeStuckClasses: (el?: HTMLElement) => void;
readonly hasModeValue: "top" | "bottom";
readonly modeValue: "top" | "bottom";
_magicElement: HTMLDivElement | null;
get defaultStuckClasses(): string[];
get _mode(): "beforebegin" | "afterend";
connect(): void;
}