I'm currently working on creating a table using data from Vue.js. Depending on the value of a specific column, I want to split the cells into either 2 or 3 columns.
Take a look at this image:
The cell in row 01 and col 01 should be split into 3 vertical columns with null values in each column. Cells with two null values should be divided into 2 columns vertically.
I attempted to use colspan dynamically based on the number of null values, but it didn't produce the desired result.
Here's what I've tried so far on jsFiddle: jsfiddle.net/amahajan/vqysp93r
Is there a way to achieve this grid layout for the table?