<table id="myTable" class="display pageResize nowrap">
                        <thead>
                            <tr>
                                <th>Título</th>
                                <th>Prioridade</th>
                                <th>Departamento</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
 
body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}
 
<script src="//cdn.datatables.net/plug-ins/1.13.7/features/pageResize/dataTables.pageResize.min.js"></script>
 <script>
        $(document).ready(function(){
            $('#myTable').DataTable({   
                    language: {
                        url: '//cdn.datatables.net/plug-ins/1.13.7/i18n/pt-BR.json',
                    },
                    responsive: true,
                    scrollCollapse: true,
                    scrollY: '100%',
                    lengthChange: true,
                    processing: true,
                    serverSide: true,
                    autoFill: true,
                    pageResize: true,
                    paging: true,
                    "ajax": "{{route('tickets.ajax')}}",
                    "columns": [
                        {"data": 'titulo'},
                        {"data": 'prioridade'},
                        {"data": 'departamento'},
                    ]
            });
        })
    </script>
5 errors 2 warnings
Line 1: Expected an identifier and instead saw '<'.
Line 1: Expected an assignment or function call and instead saw an expression.
Line 1: Missing semicolon.
Line 1: Expected an assignment or function call and instead saw an expression.
Line 1: Missing semicolon.
Line 1: Unclosed regular expression.
Line 1: Unrecoverable syntax error. (3% scanned).
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers