In-place Editing Javascript Library - X-editable

In-place Editing Javascript Library - X-editable

X-editable is a javascript library inspired by bootstrap-editable plugin that invokes in-place editing feature to any element of your page. It works with bootstrap, jquery-ui, jquery only and includes both popup and inline modes. 


$ npm install X-editable --save
# Bower
$ bower install X-editable --save

How to use it:

1.  Decide which core library you want to use.

2.  Inlcude X-editable.js and X-editable CSS

<link href="bootstrap-editable/css/bootstrap-editable.css" rel="stylesheet">
<script src="bootstrap-editable/js/bootstrap-editable.js"></script>

3. Markup elements with additional data-* attributes

<a href="#" id="username" data-type="text" data-pk="1" data-url="/post" data-original-title="Enter username">superuser</a>

4. Call the function with options

//turn to inline mode
$.fn.editable.defaults.mode = 'inline'; // popup default
    type: 'text',
    pk: 1, // primary key (record id)
    url: '/post', // Send ajax request with new value on /post
    title: 'Enter username'

Change log:


  • v1.5.3


  • FIXED: maxYear


  • fix misspelling of useful

This awesome jQuery plugin is developed by vitalets. For more Advanced Usages, please check the demo page or visit the official website.

  • Publication date: 25.12.2017
  • Source