mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 12:43:06 +08:00
Merge pull request #4455 from EnableSoftware/jquery-placeholder
Added overload for definition of a custom CSS class
This commit is contained in:
@@ -2,3 +2,7 @@
|
||||
/// <reference path="jquery.placeholder.d.ts"/>
|
||||
|
||||
$('input').placeholder();
|
||||
|
||||
// specify custom class
|
||||
$('input').placeholder({ customClass: 'my-placeholder' });
|
||||
|
||||
|
||||
+4
-5
@@ -1,13 +1,12 @@
|
||||
// Type definitions for jquery.placeholder.js 2.0.7
|
||||
// Type definitions for jquery.placeholder.js 2.1.1
|
||||
// Project: https://github.com/mathiasbynens/jquery-placeholder
|
||||
// Definitions by: Peter Gill <https://github.com/majorsilence>
|
||||
// Definitions by: Peter Gill <https://github.com/majorsilence>, Neil Culver <https://github.com/EnableSoftware>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
|
||||
interface JQuery {
|
||||
|
||||
placeholder() : void;
|
||||
|
||||
placeholder(options: { customClass: string }) : JQuery
|
||||
placeholder() : JQuery
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user