# vuejs-editinline-plugin

> vuejs library demo

Latest version **1.0.15** (published 2018-08-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install vuejs-editinline-plugin
pnpm add vuejs-editinline-plugin
yarn add vuejs-editinline-plugin
bun add vuejs-editinline-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.15 |
| Published | 2018-08-09 |
| First published | 2018-08-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | rocket10 |

## Links

- npm: https://www.npmjs.com/package/vuejs-editinline-plugin
- npm.io page: https://npm.io/package/vuejs-editinline-plugin

## Dependencies (6)

- [vue](https://npm.io/package/vue.md) ^2.5.9
- [node-sass](https://npm.io/package/node-sass.md) ^4.9.2
- [element-ui](https://npm.io/package/element-ui.md) ^2.4.5
- [url-loader](https://npm.io/package/url-loader.md) ^1.0.1
- [scss-loader](https://npm.io/package/scss-loader.md) 0.0.1
- [style-loader](https://npm.io/package/style-loader.md) ^0.22.1

## Recent versions

- 1.0.15 (latest) — 2018-08-09
- 1.0.14 — 2018-08-08
- 1.0.13 — 2018-08-08
- 1.0.12 — 2018-08-07
- 1.0.11 — 2018-08-07
- 1.0.10 — 2018-08-07
- 1.0.9 — 2018-08-07
- 1.0.8 — 2018-08-07
- 1.0.7 — 2018-08-07
- 1.0.6 — 2018-08-07
- 1.0.5 — 2018-08-07
- 1.0.4 — 2018-08-07
- 1.0.3 — 2018-08-06
- 1.0.2 — 2018-08-06
- 1.0.1 — 2018-08-06
- … 1 more at https://npm.io/package/vuejs-editinline-plugin/versions

## README

# How it work ?

## To build and publish on NPM

Just add your component .vue in components folder

Then, import your component in wrapper.js and set it globally with Vue.component('nameOfYourComponent', yourComponent)

Then => in webpack.config.js and package.json => change the entry point with './src/wrapper.js',
And finally uncomment the output part for build plugin and comment the output part for test component

Then => change the version in package.json

Delete the file in the /dist folder

npm run build
npm publish


## To test components


npm run dev


## Text Input

To use text inline editing

<text-edit-inline v-model="msg" @updated="updated"/>

msg : your text data

@updated : callback (when save button is clicked) contains an object with old data and new data

## Select Input

To use select inline editing

<select-edit-inline v-model="selected" @updated="updated" :options="options"/>

selected : id option selected by default

options : 

```javascript
options: [
    {
        id: 1,
        label: 'Value 1',
    },
    {
        id: 2,
        label: 'Value 2',
    },
    {
        id: 3,
        label: 'Value 3',
    },
]
```

@updated : callback (when save button is clicked) contains an object with old data (id) and new data (id)

---
_Source: https://npm.io/package/vuejs-editinline-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
