@stimulus-library/controllers
Version:
A library of useful controllers for Stimulus
19 lines (18 loc) • 635 B
TypeScript
import { BaseController } from "@stimulus-library/utilities";
export declare class ClipboardController extends BaseController {
static targets: string[];
static values: {
removeUnused: BooleanConstructor;
};
readonly sourceTarget: HTMLElement;
readonly copyTarget: HTMLElement;
readonly hasCopyTarget: boolean;
readonly fallbackTarget: HTMLElement;
readonly hasFallbackTarget: boolean;
readonly hasRemoveUnusedValue: boolean;
readonly removeUnusedValue: boolean;
_supported: boolean;
connect(): void;
select(event: MouseEvent): void;
copy(event: ClipboardEvent): void;
}