mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
Update jQuery.Watermark, add tests
This commit is contained in:
-19
@@ -1,19 +0,0 @@
|
||||
// Type definitions for Watermark plugin for jQuery 3.1.4
|
||||
// Project: http://jquery-watermark.googlecode.com
|
||||
// Definitions by: https://github.com/anwarjaved
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
|
||||
/// <reference path="../jquery/jquery-1.8.d.ts"/>
|
||||
|
||||
|
||||
interface WatermarkOptions {
|
||||
className?: string; // Default class name for all watermarks
|
||||
useNative?: bool; // If true, plugin will detect and use native browser support for watermarks, if available. (e.g., WebKit's placeholder attribute.)
|
||||
hideBeforeUnload?: bool; // If true, all watermarks will be hidden during the window beforeunload event.
|
||||
}
|
||||
|
||||
|
||||
interface JQuery {
|
||||
watermark(text : string, options?: WatermarkOptions): JQuery;
|
||||
}
|
||||
Reference in New Issue
Block a user