samedi 23 octobre 2021

How To remove checkbox in datatable?

I am using data table but i do not require the checkbox column. How can i remove that checkbox field. Here's my code

 responsiveHelper = undefined;
            var activity = $("#view-activity");
            var Activity = activity.DataTable( {
                fixedColumns: true,
                stateSave: true,
                info: true,
                data : JSON.parse('{!! $activity ?? '' !!}'),
                dom : "<'row'"+
                    "<'col-lg-6 col-md-6 mb-2'l>"+
                    "<'col-lg-6 col-md-6 mb-2'f>>"+
                    "<'card-body py-0'"+
                    "<'table-responsive'tr>>"+
                    "<'card-footer text-center'ip>",
                columns : [
                    {
                        data : "date",
                        orderable : false,
                    },{
                        data : 'description',
                        orderable : false,
                    }
                ],
                order: []
            });



Aucun commentaire:

Enregistrer un commentaire