Skip to content
This repository was archived by the owner on Jul 29, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,23 @@ $(document).ready(function() {
indicator : '<img src="img/spinner.svg" />',
tooltip : 'Click to edit…'
});

$('.edit_select').editable('save.php', {
type : 'select',
indicator : 'Saving ...',
loadurl : 'api/load.php',
inputcssclass : 'form-control',
cssclass : 'form'
});
});
~~~

In the code above, the elements of class `edit` will become editable with a double click. It will show 'Saving…' when sending the data. The CSS class `custom-css` will be applied to the element. The button to submit will show the 'Save' text.

The elements of class `edit_area` will become editable with a textarea. An image will be displayed during the save.

The elements of class `edit_select` will become a selectable drop-down list.

Both elements will have a tooltip showing when mouse is hovering.

The [live demo](https://jeditable.elabftw.net) shows more example but with that you can already do plenty!
Expand Down