Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Vue Table with custom Buttons Add & Delete

I want to create a dynamic bootstrap table that looks something like this: https://examples.bootstrap-table.com/#welcome.html

Currently I am using this code to display my data from an array in the bootstrap table:

<b-table striped hover :items="shotlist_tab.shots"></b-table>

But I also want to add custom buttons on the side for each row (edit / delete).

Is there a way to customize the columns of a "b-table"? I haven't found anything yet.

like image 752
HTLWelsITLover99 Avatar asked Dec 25 '19 08:12

HTLWelsITLover99


1 Answers

You can use slots. You can read here about that.

If you provide some more code I can help you with that.

Also, one good example of using slots and collapse data inside the row.

Good luck!

like image 67
mare96 Avatar answered Sep 29 '22 19:09

mare96