An open API service indexing awesome lists of open source software.

https://github.com/mykeels/vue-editable

A collection of editable Vue components
https://github.com/mykeels/vue-editable

components editable javascript vue

Last synced: 4 months ago
JSON representation

A collection of editable Vue components

Awesome Lists containing this project

README

          

# Vue Editable

This is a collection of editable Vue components.

The components are "Editable" because you can double-click them and get an input field to edit its content.

Available editable components are:

## Text Editable

```html

```

| Prop | Type | Required | Description |
| ---------- | --------:| --------:| ----:|
| value | String | No | |
| class-name | String | No | |
| is-edit | Boolean | No | |
| multi | Boolean | No | |
| on-change | Function | No | |

## Date Editable

```html

```

| Prop | Type | Required | Description |
| ---------- | --------:| --------:| ----:|
| value | String | Yes | |
| format | String | Yes | |
| class-name | String | No | |
| is-edit | Boolean | No | |
| on-change | Function | No | |

## Select Editable

```html

```

| Prop | Type | Required | Description |
| ---------- | --------:| --------:| ----:|
| value | String | No | |
| values | Array | Yes | |
| class-name | String | No | |
| is-edit | Boolean | No | |
| on-change | Function | No | |

## Time Editable

```html

```

| Prop | Type | Required | Description |
| ---------- | --------:| --------:| ----:|
| value | String | Yes | |
| class-name | String | No | |
| is-edit | Boolean | No | |
| multi | Boolean | No | |
| on-change | Function | No | |

# How to use

You could use via the `` tag:

```html
<script src="https://raw.githubusercontent.com/mykeels/vue-editable/master/build/vue-editable.min.js">
```

Be sure to register the components in your Vue Instance

```html

new Vue({
el: '#app',
data: {

},
components: {
'text-editable': VueEditable.TextEditable,
'date-editable': VueEditable.DateEditable,
'select-editable': VueEditable.SelectEditable,
'time-editable': VueEditable.TimeEditable
}
})

```

# Testing

Testing is done with [Jest](https://github.com/facebook/jest). You can run tests with `npm test`