hide column in antd table using js 2f react with conditional rendering

Solutions on MaxInterview for hide column in antd table using js 2f react with conditional rendering by the best coders in the world

showing results for - "hide column in antd table using js 2f react with conditional rendering"
Samantha
13 Sep 2020
1let columns = [
2  {
3    title: "Name",
4    dataIndex: "name",
5    key: "name"
6  },
7  {
8    title: "Age",
9    dataIndex: "age",
10    key: "age"
11  },
12  {
13    title: "Address",
14    dataIndex: "address",
15    key: "address"
16  },
17  {
18    title: "Action",
19    key: "action",
20    dataIndex: "action",
21    hidden: true
22  }
23].filter(item => !item.hidden);
similar questions