From c1c93c08dfe40f74b42c46a612200222063b8b18 Mon Sep 17 00:00:00 2001 From: Cristian Date: Sat, 16 Oct 2021 14:05:30 +0300 Subject: [PATCH] Update README.md For the newly added customization for the SELECT element, an example and short explanation was added. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d306ffc..2a5a3ed 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,14 @@ $(document).ready(function() { indicator : '', tooltip : 'Click to edit…' }); + + $('.edit_select').editable('save.php', { + type : 'select', + indicator : 'Saving ...', + loadurl : 'api/load.php', + inputcssclass : 'form-control', + cssclass : 'form' + }); }); ~~~ @@ -72,6 +80,8 @@ In the code above, the elements of class `edit` will become editable with a doub 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!