Installation
npm install --save @types/jquery.watermark
Summary
This package contains type definitions for jquery.watermark (http://jquery-watermark.googlecode.com).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.watermark.
index.d.ts
/// <reference types="jquery"/>
interface WatermarkOptions {
className?: string | undefined; // Default class name for all watermarks
useNative?: boolean | undefined; // If true, plugin will detect and use native browser support for watermarks, if available. (e.g., WebKit's placeholder attribute.)
hideBeforeUnload?: boolean | undefined; // If true, all watermarks will be hidden during the window beforeunload event.
}
interface Watermark {
options: WatermarkOptions;
show(element: string): void;
hide(element: string): void;
showAll(): void;
hideAll(): void;
}
interface JQuery {
watermark(text: string, options?: WatermarkOptions): JQuery;
}
interface JQueryStatic {
watermark: Watermark;
}
Additional Details
- Last updated: Tue, 30 Jan 2024 21:35:45 GMT
- Dependencies: @types/jquery
Credits
These definitions were written by Anwar Javed.