简体   繁体   English

jQuery datatable默认单击事件编辑

[英]jquery datatable default editing on click event

I am using jquery datatable plugin on my web application, with inline editing functionality. 我在Web应用程序上使用jquery datatable插件,具有内联编辑功能。 The default editing setup 默认编辑设置

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

only triggers the edit event once Enter button is pressed. 仅在按下Enter键后才触发编辑事件。 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. 使用Jeditable可能是理想的解决方案。 Please check out the example here . 请在此处查看示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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