Answers for "hide column in antd table using js / react with conditional rendering"

0

hide column in antd table using js / react with conditional rendering

let columns = [
  {
    title: "Name",
    dataIndex: "name",
    key: "name"
  },
  {
    title: "Age",
    dataIndex: "age",
    key: "age"
  },
  {
    title: "Address",
    dataIndex: "address",
    key: "address"
  },
  {
    title: "Action",
    key: "action",
    dataIndex: "action",
    hidden: true
  }
].filter(item => !item.hidden);
Posted by: Guest on August-18-2021

Code answers related to "hide column in antd table using js / react with conditional rendering"

Code answers related to "Javascript"

Browse Popular Code Answers by Language