1
selectとrowReorderの両方の拡張機能を使用したい。 rowReorderのデフォルトでは、最初の列はドラッグハンドルですが、最初の列のセルをクリックしてもその行は選択されません。jQueryデータ型で行の並べ替えのドラッグハンドルを有効にする
私は通常、行全体をドラッグハンドルにして、クリックすることで選択を許可します。 rowReorderをクリックしてselectエクステンションにするイベントを許可する方法はありますか?
<table id="example">
<thead>
<tr>
<th>No.</th>
<th>foo</th>
<th>bar</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>a</td>
<td>a</td>
</tr>
<tr>
<td>2</td>
<td>b</td>
<td>b</td>
</tr>
<tr>
<td>3</td>
<td>c</td>
<td>c</td>
</tr>
</tbody>
$('#example').DataTable({
select: true,
rowReorder: { selector: 'tr' }
})