UNPKG

@stimulus-library/mixins

Version:

A library of useful controllers for Stimulus

11 lines (10 loc) 458 B
import { Controller } from "@hotwired/stimulus"; export declare function useDirtyInputTracking(controller: Controller, element: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement): { restore: () => void; teardown: () => void; }; export declare function useDirtyFormTracking(controller: Controller, form: HTMLFormElement): { restore: () => void; teardown: () => void; }; export declare function isDirty(element: HTMLElement): boolean;