Vuejs Double Click to inline editing vue Grid Component

Vuejs Double Click to inline editing vue Grid Component

In this Post We Will Explain About is Vuejs Double Click to inline editing vue Grid Component With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Vue 2.0 Double Click to edit grid Example

In this post we will show you Best way to implement Vuejs Double Click to Edit Text, hear for with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Include External Libs

<script src="https://unpkg.com/vue/dist/vue.js"></script>

index.html


<h2>Vue 2.0 Double Click to edit grid</h2>
<div id="liveApp">

  <ul class="work-list">
    <li v-for = "work in works">
      <div v-show = "work.edit == false">
        <label @dblclick = "work.edit = true"> {{work.title}} </label>
      </div>
      <input v-show = "work.edit == true" v-model = "work.title"
      v-on:blur= "work.edit=false; $emit('update')"
      @keyup.enter = "work.edit=false; $emit('update')">
    </li>
  </ul>
</div>

index.js

new Vue({
  el: '#liveApp',
  data: {
    works: [{'title':'Live24u','edit':false},
    			  {'title':'jaydeep Godaliya','edit':false},
    			  {'title':'krunal sisodiya','edit':false},
    				{'title':'Ankit kathiriya','edit':false}],
    editedTodo: null,
    message: 'Welcome to Hello Vue.js!'
  },
  methods: {
    editTodo: function(work) {
      this.editedTodo = work;
    },
  }

})

style.css

.work {
  background-color: green
}
.editing {
  background-color: red
}

Also Read :  integration Google No CAPTCHA reCAPTCHA using Laravel

Vue 2.0 Double Click to edit grid

You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example

Example

I hope you have Got What is Vuejs double click to edit feature/part Component And how it works.I would Like to have FeedBack From My Blog(Pakainfo.com) readers.Your Valuable FeedBack,Any Question,or any Comments about This Article(Pakainfo.com) Are Most Always Welcome.

Leave a Reply

Your email address will not be published. Required fields are marked *