@types/jquery.watermark
TypeScript icon, indicating that this package has built-in type declarations

3.1.34 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jquery.watermark

Weekly Downloads

1

Version

3.1.34

License

MIT

Unpacked Size

4.18 kB

Total Files

5

Last publish

Collaborators

  • types