I'm having an issue with the b-table
component in bootstrap-vue
.
The array containing my items is structured like this:
[{
id: 1,
name: "Test",
phone: 555-111-666,
address: "Some Address",
//etc...
}]
I have a couple of questions related to this:
Firstly, how can I customize the column names instead of using the ones from the object when binding with :items=myArray
? Is it possible to set custom column names?
Secondly, I only want to display certain data fields (e.g. name
and address
) in the table instead of showing all the data. How can I achieve this?
Lastly, how can I add a custom column with, for example, an icon instead of the value from the object?
Appreciate any assistance on these matters.