I’m making an attempt to create a default desk variation with the header part toggled on. There isn’t a boolean attribute to activate the header part it appears and as a substitute it’s an array.
I used to be in a position so as to add the header part with the under code but it surely then doesn’t activate the ‘create desk wizard'(the place person chooses quantity of columns/rows earlier than desk is generated) and it additionally breaks the “insert row” operate until I additionally add the attribute physique”: [{“cells”: […
wp.blocks.registerBlockVariation('core/table', {
name: 'my-table',
title: 'Table',
attributes: {
className: 'is-style-regular',
head: [
{
cells: [
{
tag: "th"
}
]
}
],
},
isDefault: true,
});
If block variation can’t toggle the header part with out dropping the wizard and insert row performance then is there one other means of doing it?