Can custom data types be used to create an empty row for the lightning datadatable where values from the top row would copy to all rows below? Is this functionality achievable or should I use a different component?

Sample Table

Thank you,


1 Answer 1


Custom Data Types cannot be used to create a row. It is a data type - similar to text, number, action, etc. And data types are used to specify what will displayed in a column (e.g. you can create a data type that will display another component inside of a column).

For your purposes you cannot use lightning-datatable and will have to stay with regular HTML-based table. Here you can see several examples of how to prepare such component.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .