title: DataTables show different button according to query
body: <p>I use jquery DataTables to get data . i want to show/hide columnDefs:edit button according to the query data,data has an item 'edit': 0-hide edit button,1-show edit button </p>
  
  <pre><code>$('#buget_table').dataTable( {
              "aLengthMenu": [[10, 50, 100, -1], [10, 50, 100, "All"]],
              "ajax": {
                  "url": "{{ url('buget.owt_index') }}",
                  "type": "POST"
              },
              "columns": [
                  { "data": "id", 'searchable': true},
                  { "data": "machine_type", 'searchable': true },
                  { "data": "machine_room", 'searchable': true },
                  { "data": "machine_nums", 'searchable': true },
                  { "data": "cpu_nums", 'searchable': true },
                  { "data": "mem_nums", 'searchable': true },
                  { "data": "disk_type", 'searchable': true },
                  { "data": "disk_nums", 'searchable': true },
                  { "data": "commit_user", 'searchable': true },
                  { "data": "commit_time", 'searchable': true },
              ],
              "columnDefs": [{
                      "render": function (data, type, full) {
                          return '&lt;a id="owt_edit" data-toggle="modal" data-target="#buget-modal"   class="btn btn-primary btn-sm" href="/buget/buget_query/?action=edit&amp;html=1&amp;id=' +full['id']+ '"&gt;detail&lt;/a&gt;' +
                                  '&lt;a id="owt_delete" data-toggle="modal" class="btn btn-danger btn-sm" href="javascript:void(0)" onclick=edit_buget("' + full['id'] +'");&gt;edit&lt;/a&gt;';
                      },
                      "targets": 10,
              }],
          });
  </code></pre>