You can see below the API reference of this module.
Make an element editable using double-click.
- Object
opts
: An object containing the following fields:onChange
(Function): The function that will be triggered on change (onChange (newValue, oldValue) => {...}
)inputHTML
(String|jQuery): The HTML of the input to use or the jQuery element itself (default:<input type='text'>
)clickTarget
(String): Ifparent
, the parent element will become the click target.
- jQuery The selected element.