@stimulus-library/controllers
Version:
A library of useful controllers for Stimulus
18 lines (17 loc) • 549 B
TypeScript
import { BaseController } from "@stimulus-library/utilities";
export declare class ScrollToController extends BaseController {
static values: {
selector: StringConstructor;
behavior: StringConstructor;
block: StringConstructor;
inline: StringConstructor;
};
selectorValue: string;
behaviorValue: ScrollBehavior;
hasBehaviorValue: boolean;
blockValue: ScrollLogicalPosition;
hasBlockValue: boolean;
inlineValue: ScrollLogicalPosition;
hasInlineValue: boolean;
scroll(): void;
}