0.0.34 • Published 6 months ago

@types/jquery.are-you-sure v0.0.34

Weekly downloads
139
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/jquery.are-you-sure

Summary

This package contains type definitions for jquery.are-you-sure.js (https://github.com/codedance/jquery.AreYouSure).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.are-you-sure.

index.d.ts

// Type definitions for jquery.are-you-sure.js
// Project: https://github.com/codedance/jquery.AreYouSure
// Definitions by: Jon Egerton <https://github.com/jonegerton>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="jquery" />

/**Options available to control dirty form checking*/
interface AreYouSureOptions {
    
    /**Message to show when attempting to quit a dirty form without saving*/
    message?: string | undefined;

    /**Class to assign to the form when dirty*/
    dirtyClass?: string | undefined;
    
    /**Callback when form is found to be dirty - allows control of submit/reset buttons etc*/
    change?: Function | undefined;
    
    /**Jquery selector to use to find input elements*/
    fieldSelector?: string | undefined;
    
    /**Make Are-You-Sure "silent" by disabling the warning message*/
    silent?: boolean | undefined;
}

interface AreYouSure {
    (): JQuery;
    (options: AreYouSureOptions): JQuery;
}

interface JQuery {
    areYouSure: AreYouSure;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 16:22:32 GMT
  • Dependencies: @types/jquery
  • Global values: none

Credits

These definitions were written by Jon Egerton.

0.0.32

8 months ago

0.0.33

7 months ago

0.0.34

6 months ago

0.0.31

3 years ago

0.0.30

4 years ago

0.0.29

7 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26-alpha

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.20-alpha

8 years ago

0.0.15-alpha

8 years ago

0.0.14-alpha

8 years ago