Conditionally show columns #413
-
I have used vue-easytable plugin version 2.8.2 to display a table inside a Vue component. I have a problem of finding how to conditionally display a table column. In the demo displayed in here when either of the "Row Radio" or "Row Checkbox" switches are switched on we can see a column is added to the demo table dynamically. So I think this feature/functionality should be there already in the plugin but I couldn't find how to achieve this referring to the documentation. Within my Vue component the columns array I pass to vue-easytable is as follows.
I want to show the "Entity" column when a condition is satisfied. What should I do to achieve that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
In this example, I implemented it through |
Beta Was this translation helpful? Give feedback.
-
I am also considering whether to add some APIs to support the hidden column feature |
Beta Was this translation helpful? Give feedback.
In this example, I implemented it through
computed
. You can refer to this file for specific code implementation .