coreui / coreui-free-vue-admin-template

Open source admin template based on Bootstrap 5 and Vue 3
https://coreui.io/product/free-vue-admin-template/
MIT License
3.3k stars 968 forks source link

How to give custom column names in CoreUI Table columns? #243

Closed pverma911 closed 3 years ago

pverma911 commented 3 years ago

Title,

I have an array of objects coming in as items for the table For e.g. [{name:'Sam',age:'24}]

I want to set custom field names like instead of column to be named as age, I want it to display column name as Id instead of age.

So, Basically how can I set custom column names? Read the documentation but couldn't figure it out. Someone help