Dynamic Column for a table

Hi,

I need to create a table where the last column will be split into multiple columns. Here in this case the splitting of last column should be dynamic based on a click of button. Can anyone help me with this please?

I don't want to use any forge components and can this be achieved without forge ?

Below is the image shows how I want to design it. 

Thanks, 

Shree

In which type of application are you working to achieve this functionality Traditionally/Reactive. 

Its a Traditional application

I can see one option here to create a dynamic table that using HTML tags that can write logic. Also want to know you just want to show the data here or need to be used in some other process like transactions...

I want this table to show the data and this data should get stored in an entity too. 

Next time when we are opening the screen where this table should show all the data which were added before

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.