/// export declare class Handlers { constructor(); /** * Initialise all default Hood CMS handlers. */ initDefaultHandlers(): void; /** * Sets values of any selects that have the value set in data-selected, useful for */ initSelectValues(tag?: string): void; initSelectValuesHandler(this: HTMLElement, index: number, element: HTMLElement): void; /** * Sets up any Hood Icon selector fields, requires the correct HTML setup. */ iconSelector(tag?: string): void; iconSelectorHandler(this: HTMLElement, index: number, element: HTMLElement): void; /** * Submits the form when input is changed, mark inputs with .submit-on-change class. */ selectText(tag?: string): void; selectTextHandler(this: HTMLInputElement): void; /** * Attaches handlers for default scrolling functions, scroll to top, scroll to target (with header.header offset calculated) * and scroll to target direct (with no calculated offset). */ scrollHandlers(tag?: string): void; scrollTop(this: HTMLAnchorElement, e: JQuery.ClickEvent): boolean; scrollTarget(this: HTMLAnchorElement, e: JQuery.ClickEvent): void; scrollTargetDirect(this: HTMLAnchorElement): boolean; /** * Compiles any selected checkboxes with matching data-hood-csv-input tags, * then saves the CSV list of the values to the input given in the tag. */ checkboxToCsvInput(tag?: string): void; checkboxToCsvInputHandler(this: HTMLInputElement, e: JQuery.ChangeEvent): void; /** * Submits the form when input is changed, mark inputs with .submit-on-change class. */ submitOnChange(tag?: string): void; submitOnChangeHandler(this: HTMLFormElement, e: JQuery.ChangeEvent): void; /** * Sets the value of the input [data-target] when clicked to the value in [data-value] */ setValueOnClick(tag?: string): void; setValueOnClickHandler(this: HTMLElement): void; }