简体   繁体   中英

jquery datatable default editing on click event

I am using jquery datatable plugin on my web application, with inline editing functionality. The default editing setup

$('#example').dataTable().makeeditable({
          null  //default editing
    });

only triggers the edit event once Enter button is pressed. Is there a way this can be changed to a 'click outside the box' event similar to how the select works

$('#example').dataTable().makeeditable({
          indicator: 'Saving...',
          tooltip: 'Click to select option',
          loadtext: 'loading...',
          type: 'select',
          onblur: 'submit',
          data: "{'A; A':'B; B'}"                                    
    });

Using Jeditable might be the ideal solution. Please check out the example here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM