1.3.6 • Published 6 months ago

@types/jquery-toast-plugin v1.3.6

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

Installation

npm install --save @types/jquery-toast-plugin

Summary

This package contains type definitions for jquery-toast-plugin (https://github.com/kamranahmedse/jquery-toast-plugin).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-toast-plugin.

index.d.ts

// Type definitions for jquery-toast-plugin 1.3
// Project: https://github.com/kamranahmedse/jquery-toast-plugin, http://www.kamranahmed.info/toast
// Definitions by: Viqas Hussain <https://github.com/viqashussain>
//                 Andrew Stegmaier <https://github.com/astegmaier>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

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

interface JQueryStatic {
    toast(options: toastOptions): void;
}

interface toastOptions {
    text: string;
    heading?: string | undefined;
    showHideTransition?: 'fade' | 'slide' | 'plain' | undefined;
    allowToastClose?: boolean | undefined;
    hideAfter?: number | false | undefined;
    loader?: boolean | undefined;
    loaderBg?: string | undefined;
    stack?: number | false | undefined;
    position?: 'bottom-left' | 'bottom-right' | 'bottom-center' | 'top-right' | 'top-left' | 'top-center' | 'mid-center' | CustomPosition | undefined;
    bgColor?: string | undefined;
    textColor?: string | undefined;
    textAlign?: 'left' | 'right' | 'center' | undefined;
    icon?: 'info' | 'warning' | 'error' | 'success' | undefined;
    beforeShow?: (() => any) | undefined;
    afterShown?: (() => any) | undefined;
    beforeHide?: (() => any) | undefined;
    afterHidden?: (() => any) | undefined;
}

interface CustomPosition {
    left: number | 'auto';
    right: number | 'auto';
    top: number | 'auto';
    bottom: number | 'auto';
}

Additional Details

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

Credits

These definitions were written by Viqas Hussain, and Andrew Stegmaier.

1.3.6

6 months ago

1.3.5

7 months ago

1.3.4

8 months ago

1.3.3

3 years ago

1.3.2

5 years ago

1.3.1

6 years ago

1.3.0

6 years ago