mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
fix nvnc, zeromq, icheck and unity-webapi definitions
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
///<reference path="icheck.d.ts" />
|
||||
///<reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
$('input').iCheck({
|
||||
labelHover: false,
|
||||
cursor: true
|
||||
});
|
||||
|
||||
// customize all inputs (will search for checkboxes and radio buttons)
|
||||
$('input').iCheck();
|
||||
|
||||
// handle inputs only inside $('.block')
|
||||
$('.block input').iCheck();
|
||||
|
||||
// handle only checkboxes inside $('.test')
|
||||
$('.test input').iCheck({
|
||||
handle: 'checkbox'
|
||||
});
|
||||
|
||||
// handle .vote class elements (will search inside the element, if it's not an input)
|
||||
$('.vote').iCheck();
|
||||
|
||||
// you can also change options after inputs are customized
|
||||
$('input.some').iCheck({
|
||||
// different options
|
||||
});
|
||||
|
||||
$('input').on('ifChecked', function (event) {
|
||||
alert(event.type + ' callback');
|
||||
});
|
||||
|
||||
$('input').iCheck('check', function () {
|
||||
alert('Well done, Sir');
|
||||
});
|
||||
Vendored
+3
-3
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Dániel Tar https://github.com/qcz
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare interface ICheckOptions {
|
||||
interface ICheckOptions {
|
||||
/**
|
||||
* 'checkbox' or 'radio' to style only checkboxes or radio buttons, both by default
|
||||
*/
|
||||
@@ -106,7 +106,7 @@ declare interface ICheckOptions {
|
||||
insert?: string;
|
||||
}
|
||||
|
||||
declare interface JQuery {
|
||||
interface JQuery {
|
||||
iCheck(options?: ICheckOptions): JQuery;
|
||||
iCheck(command: string): void;
|
||||
iCheck(command: string, callback?: () => void): void;
|
||||
}
|
||||
Reference in New Issue
Block a user