jQuery Datatables align center 1 column

前端 未结 4 1456
太阳男子
太阳男子 2021-02-05 02:51

Want to align center just the first column called \"Status\":

        $(\"#TransactionTable\").DataTable({
            ajax: {
                url: \'/Transactio         


        
4条回答
  •  青春惊慌失措
    2021-02-05 03:38

    You can style that manually

    $("select_your_table").DataTable({
        ....
        columns: [
            {
                mData: "select_property_from_json",
                render: function (data) {
                    return 'data';
                }
            },
        ],
        ....
    });
    

提交回复
热议问题