# @types/x-editable

> TypeScript definitions for x-editable

Latest version **1.5.34** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/x-editable
pnpm add @types/x-editable
yarn add @types/x-editable
bun add @types/x-editable
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.5.34 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51478 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/x-editable
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/x-editable
- npm.io page: https://npm.io/package/@types/x-editable

## Dependencies (1)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *

## Recent versions

- 1.5.34 (latest) — 2023-11-07
- 1.5.32 (ts4.3) — 2023-08-30
- 1.5.31 (ts3.6) — 2021-07-09
- 1.5.29 (ts2.3) — 2017-08-21
- 1.5.27 (ts2.0) — 2016-09-19
- 1.5.33 — 2023-10-18
- 1.5.30 — 2021-07-02
- 1.5.28 — 2017-06-15
- 1.5.26 — 2016-07-14
- 1.5.25-alpha — 2016-07-08
- 1.5.24-alpha — 2016-07-04
- 1.5.23-alpha — 2016-07-02
- 1.5.22-alpha — 2016-07-02
- 1.5.21-alpha — 2016-07-01
- 1.5.20-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/x-editable/versions

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/x-editable/index.d.ts)
````ts
/// <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: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [Chris Kirby](https://github.com/sirkirby).

---
_Source: https://npm.io/package/@types/x-editable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
