1
0
Fork 0
mirror of synced 2024-06-17 18:04:42 +12:00

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 634dc38768
commit 72dfa1ba1b
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",