npm.io
3.1.34 • Published 2 years ago

@types/jquery.watermark

Licence
MIT
Version
3.1.34
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 2145 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Anwar Javed.