ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

Question: changing action button visibility #120

Closed dsenyurt closed 7 years ago

dsenyurt commented 8 years ago

First of all, great work with vue-table, it is phenomenal. I do have a question whether we can change visibility of a button in __action if the data column of that row is null or some other value?

ratiw commented 8 years ago

@dsenyurt There are different ways to do that. But the easiest way I would recommend is using __component instead, like it this example. You would have total control on the condition.

The __action itself is quite limited comparing to __component, therefore, it is no longer available in vuetable-2.