Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2366

What's the difference between data and name in a column spec?

$
0
0

Hello everyone!

I have a script as seen below, The field name is 'Company_ID' is the below script valid? (Note that I've called the 'name' 'Company ID' with no space)

I'm trying to understand if an error I'm getting is because I'm using it wrong, or if it's a problem with the laravel datatables plugin I'm using. Thanks!

<script>
    $(document).ready(function () {
        $('#trucks-table').DataTable({
            processing: true,
            serverSide: true,
            ajax: '{{ url("admin/trucks/data") }}',
            columns: [
                {data: 'Company_ID', name: 'Company ID'},
               ]
        });
    })
  • Jack

Viewing all articles
Browse latest Browse all 2366

Trending Articles