Vue.js: Create web table for 30 minutes
Table of content
Editor’s note: written in 2021 for Vue 2 with BootstrapVue.
Often in our work, we have to create components for working with Tables. Typically, a client needs a quick and easy way to create tables with sorting, filtering and pagination. In addition, tables must be versatile so that they could be used for small data sets as well as for significant ones (more than 1000 records).
In this article, we would like to demonstrate how convenient and easy it is to build a Vue.js web table.
Try to follow the instructions and you will be able to develop the web grid component easily!
- Launch the console, go to the folder in which we will create the project.
- Add vue, bootstrap and bootstrap-vue (the last 2 are needed for the table):

- Create HTML and JS files for the project, for example: hr.html, hr.js
- Add references to the modules in the HTML file and a reference to the JS file with the code:

- Let’s add a table with the header “hrSystem” (into the body tag)
(its id is hrSystem, and the JS file uses that id to connect the Vue object)

- Now create the Vue object and pass the array to the table.
Add Vue object and array of persons into hr.js. That array will be visible in the Table until you connect the server part.
Vue Object:
- Update html file and add fields declaration
- Let’s add a “Delete” button to every row
- Add the code to the JS file (to delete a row)
- To make rows editable, let’s add an edit button, a script and a template for editing a row
- Let’s add a button to add new rows
- Let’s add a filter option
- Let’s add a sort option for some columns “‘sortable’: true”. Below is an example
And that is it.
As you can see, the logic to create a web table (web grid) is extremely easy.
Vue.js is a beautiful and clear framework.
The example we showed to you was a small app we developed for the Human Resources department of our company. Vue.js allowed creating the frontend part of the app. Everything else (backend, database, testing, deploy and stabilization) took only a few days.
Update (October 2026): This tutorial uses Vue 2, which reached end of life on 31 December 2023, and BootstrapVue, which supports only Vue 2 and Bootstrap 4, so install those versions to follow it. For new projects, the BootstrapVue team recommends BootstrapVueNext for Vue 3 and Bootstrap 5.
If you have any questions, we welcome you to contact us, just click the Contact Us button below. Our team will be happy to help!
Sincerely
Diatom Enterprises Team – Experts in Custom Software Development







