1.5.34 • Published 6 months ago

@types/x-editable v1.5.34

Weekly downloads
2,333
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/x-editable

Summary

This package contains type definitions for X-Editable (http://vitalets.github.io/x-editable/index.html).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/x-editable.

index.d.ts

// Type definitions for X-Editable v1.5.1
// Project: http://vitalets.github.io/x-editable/index.html
// Definitions by: Chris Kirby <https://github.com/sirkirby>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

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

interface XEditableOptions {
  ajaxOptions?: any;
  anim?: string | undefined;
  autotext?: string | undefined;
  defaultValue?: any;
  disabled?: boolean | undefined;
  display?: any;
  emptyclass?: string | undefined;
  emptytext?: string | undefined;
  error?: any;
  highlight?: any;
  mode?: string | undefined;
  name?: string | undefined;
  onblur?: string | undefined;
  params?: any;
  pk?: any;
  placement?: string | undefined;
  savenochange?: boolean | undefined;
  selector?: string | undefined;
  send?: string | undefined;
  showbuttons?: any;
  success?: any;
  toggle?: string | undefined;
  type?: string | undefined;
  unsavedclass?: string | undefined;
  url?: any;
  validate?: any;
  value?: any;
}

interface XEditableSubmitOptions {
  url?: any;
  data?: any;
  ajaxOptions?: any;
  error(obj: any): void;
  success(obj: any, config: any): void;
}

interface XEditable {
  options: XEditableOptions;
  activate(): void;
  destroy(): void;
  disable(): void;
  enable(): void;
  getValue(isSingle: boolean): any;
  hide(): void;
  option(key: any, value: any): void;
  setValue(value: any, convertStr: boolean): void;
  show(closeAll: boolean): void;
  submit(options: XEditableSubmitOptions): void;
  toggle(closeAll: boolean): void;
  toggleDisabled(): void;
  validate(): void;
}

interface JQuery {
  /**
    * Initializes editable with the specified options
    * @param options an object with options specific to the editable instance
    */
  editable(options?: any): XEditable;
  /**
    * Initializes editable calling the specific method with is parameters
    * @param method the method to call
    * @param params the parameters expected by the method
    */
  editable(method: string, params?: any): XEditable;
}

Additional Details

  • Last updated: Fri, 09 Jul 2021 02:32:45 GMT
  • Dependencies: @types/jquery
  • Global values: none

Credits

These definitions were written by Chris Kirby.

1.5.32

8 months ago

1.5.34

6 months ago

1.5.33

7 months ago

1.5.31

3 years ago

1.5.30

3 years ago

1.5.29

7 years ago

1.5.28

7 years ago

1.5.27

8 years ago

1.5.26

8 years ago

1.5.25-alpha

8 years ago

1.5.24-alpha

8 years ago

1.5.23-alpha

8 years ago

1.5.22-alpha

8 years ago

1.5.21-alpha

8 years ago

1.5.20-alpha

8 years ago

1.5.19-alpha

8 years ago

1.5.14-alpha

8 years ago

1.5.13-alpha

8 years ago