如何在Bootstrap DataTable列网格上实现可编辑的Popover

时间:2018-10-01 18:25:17

标签: javascript jquery twitter-bootstrap popover

如何在Bootstrap DataTable列网格上实现可编辑的Popover。由于引导弹出窗口不支持基于类的实现。

我想要类似下面的数据表。

enter image description here

 $('#prodname1').editable({
    type: 'text',
    pk: 1,
    url: '/post',
    title: 'Enter Product Name'
    });

1 个答案:

答案 0 :(得分:0)

现在支持基于此类的操作。

 <td> <a href="#" class="edit" data-type="text" data-pk="1" data-original-title="Product Name"> Product One </a></td>

还有JS脚本

$('.edit').editable({
    type: 'text',
    title: 'Edit'
    });