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!

  1. Launch the console, go to the folder in which we will create the project.
  2. Add vue, bootstrap and bootstrap-vue (the last 2 are needed for the table):
    install vue bootstrap-vue bootstrap
  3. Create HTML and JS files for the project, for example: hr.html, hr.js
  4. Add references to the modules in the HTML file and a reference to the JS file with the code:
    references to module and JS file in html
  5. 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)
    connecting vue object
  6. 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.creating JS objectVue Object:vue object
  7. Update html file and add fields declaration
    vue add fields declaration
  8. Let’s add a “Delete” button to every row
    vue add delete button
  9. Add the code to the JS file (to delete a row)
    JS delete row
  10. To make rows editable, let’s add an edit button, a script and a template for editing a row
    JS edit button
    JS edit button
  11. Let’s add a button to add new rows
    JS add new rows
  12. Let’s add a filter option
    JS filter option
  13. Let’s add a sort option for some columns “‘sortable’: true”. Below is an example
    JS sort option

 

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

 

 

 

Related case study

reactjs app to track routes
Logistics and Transportation
Desktop, web, and mobile applications for a Swedish logistics company that automated daily routines, reduced manual errors, and increased transaction volume.

Related articles

Website Speed Why is this so important? Impact, Testi, Fixes
A slow page doesn't just annoy visitors - it costs revenue, rankings, and ad spend efficiency in ways most teams never trace back to their real cause. This guide covers what site speed actually affects, how to measure it correctly, and the fixes that move the needle.
Angular Development Outsourcing
Learn what to expect and what to avoid with angular development outsourcing. This guide helps you access top talent, manage costs, and prevent common pitfalls.
Best Headless CMS for Enterprise 2026: A Complete Guide
Discover the best headless CMS for enterprise 2026. Learn why traditional systems fail and how to select a scalable, API-first solution for your tech stack.
Web Development Services

Have a project in mind?

Web applications, portals and platforms that stay fast and secure as they grow.