0.0.14 • Published 2 years ago

vue-inline-editable v0.0.14

Weekly downloads
66
License
MIT
Repository
github
Last release
2 years ago

vue-inline-editable

Edit in place for VueJS

Demo

https://mihnsen.github.io/vue-inline-editable/

Installation

npm install vue-inline-editable
or
yarn add vue-inline-editable

Usage

import VueInlineEditable from 'vue-inline-editable';

// Use it
VueInlineEditable(
  type="text",
  v-model="name",
)

// Or list
VueInlineEditable(
  type="textarea",
  label="Edit me",
  resource="user",
  field="username",
  pk="1",
  placement="popup"
  v-model="name",
)

// CSS
@import '~vue-inline-editable/src/assets/scss/index'

Props

PropsRequiredDefaultDescription
v-modelYesNullVue Model
typeYestextField type
placeholderYesPlaceholder text
empty-valueYesText when empty
labelNoNullForm label
resourceNoNullResource in data model, ex: user_table
fieldNoNullField in data model, ex: username
pkNoNullPrimary key in model, ex: user has id = 1
placementNo'inline'Show editable as inline or popover

Development

yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Run your unit tests

yarn run test:unit

Customize configuration

See Configuration Reference.

1.0.0-alpha.1

2 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago