嗨, friend 们。我在我的项目中使用backgrid。我想从backgrid隐藏ID列。这是我的代码。

var columns = [
{ name: "id", label: "Id", cell: "integer", editable: false },
{ name: "payment_date", label: "Payment Date", cell: "date" ,editable: false },
{ name: "number_of_task", label: "Total Task", cell: "integer" ,editable: false },
{ name: "amount", label: "Amount", cell: "integer" ,editable: false }
];

最佳答案

添加renderable: false属性。在此处查看可渲染http://wyuenho.github.io/backgrid/api/index.html#!/api/Backgrid.Column

关于backgrid - 如何隐藏backgrid列?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23133251/

10-10 05:41