Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#ajax-table').DataTable({
- ajax: {
- url: '/get_dataset',
- dataSrc: 'lines',
- },
- columns: [
- {title: 'Season', data: 'season'},
- {title: 'Episode', data: 'episode'},
- {title: 'Character', data: 'character'},
- {title: 'Line', data: 'line'}
- ],
- order: [['2', 'desc']]
- });
Add Comment
Please, Sign In to add comment