@stimulus-library/controllers
Version:
A library of useful controllers for Stimulus
24 lines (23 loc) • 829 B
TypeScript
import { BaseController } from "@stimulus-library/utilities";
export declare class LoadBlockController extends BaseController {
static targets: string[];
static values: {
endpoint: StringConstructor;
errorMessage: StringConstructor;
selector: StringConstructor;
maxRetries: NumberConstructor;
};
maxRetriesValue: number;
readonly hasMaxRetriesValue: boolean;
readonly replaceTarget: HTMLElement;
readonly hasReplaceTarget: boolean;
readonly endpointValue: string;
readonly hasSelectorValue: boolean;
readonly selectorValue: string;
readonly hasErrorMessageValue: boolean;
readonly errorMessageValue: string;
get _errorMessage(): string;
get _maxRetries(): number;
connect(): void;
loadContent(event?: Event | null): Promise<void>;
}