0.2.8 • Published 4 years ago

vue-editable-element v0.2.8

Weekly downloads
38
License
-
Repository
-
Last release
4 years ago

vue-editable-element

#Installation

#NPM

npm i vue-editable-element -S

Usage As plugin

import Vue from 'vue'
import VueEditableElement from 'vue-editable-element'

Vue.use(VueEditableElement)
<template>
    <div>
		<vue-editable-element 
	    	:text="'aaaaaaaaaaaaaaaaa'"
	    	:cssclass="'w-full t-input t-input-size-default t-input-status-default border block rounded p-2 bg-white'"
	    	:textarea='true'
	    	@textupdatedblur="updatedesc"
	    >
	    </vue-editable-element>
    </div>
</template>

<script>
    export default {
        methods:{
        	updatedesc(data){
        		console.log(data)
        	}
        }
    }
</script>

Available props

The component accepts these props:

AttributeTypeDefaultDescription
textString:---:Set the value you want to edit
placeholderString:---:Set label value
textareaBooleanfalseif you want to use textarea use true;
cssclasstype | css class for design the input element

Available $emmit

The component send $emmit event to update date to api: ( textupdatedblur ) the emmit occer when the input date is update so you can catch data from parent component to update the data

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.9

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago