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

Add value of two column before rendring #102

Closed anshu2212 closed 7 years ago

anshu2212 commented 7 years ago

I have firstname and lastname two columns and in table i need to display as firstname + lastname . but i cant figure out the way.

ratiw commented 7 years ago

@anshu2212 If you're using Laravel as backend, it's easier to create Accessor.

If not, you can use __component special field and create a simple component to display firstname + lastname because __component field will have access to the data record.

anshu2212 commented 7 years ago

Thanks . That worked.