Add manifest option to prevent showing component empty states

This commit is contained in:
Andrew Kingston 2021-06-11 08:49:06 +01:00
parent 7e8e482f8f
commit f76898d80e
2 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,10 @@
$: id = instance._id
$: name = instance._instanceName
$: empty =
!children.length && definition?.hasChildren && $builderStore.inBuilder
!children.length &&
definition?.hasChildren &&
definition?.showEmptyState !== false &&
$builderStore.inBuilder
$: updateComponentProps(instance, $context)
$: selected =
$builderStore.inBuilder &&

View File

@ -1548,6 +1548,7 @@
"icon": "Table",
"styleable": true,
"hasChildren": true,
"showEmptyState": false,
"settings": [
{
"type": "dataProvider",