JSにjQueryのDataTableのパラメータを渡すAjaxのカスタムボタンは
私はAjax.Iに新しい、私はアクションを選択できるようにボタンにパラメータを渡す必要がRoRのapp.IのためのjQueryのdataTableをしていますよボタンがクリックされたときに実行される。
var invoiceTable = $('#invoice_list_index').DataTable({
"scrollY": "300px",
"bScrollCollapse": true,
processing: true,
serverSide: true,
dom: 'Bfrtip',
buttons: [
{
extend: 'alert',
text: 'My button 1',
},
{
extend: 'alert',
text: 'My button 2'
},
{
extend: 'alert',
text: 'My button 3'
}
],
"ajax": {
type: "POST",
url: '/invoices/invoice_index_page',
}
});
<a class="dt-button buttons-alert" tabindex="0" aria-controls="invoice_list_index" href="#"><span>My button 1</span></a>
問題は、私はアヤックスカスタムボタンにパラメータを渡す方法がわからないです。
これらのボタンのアクションにはどのようなパラメータを渡しますか?それらのテーブルの行のデータですか? –