1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

Add optional info text to components

This commit is contained in:
Andrew Kingston 2021-05-14 13:29:14 +01:00
parent 753f0befbc
commit 47db3df0a1
2 changed files with 7 additions and 3 deletions

View file

@ -156,8 +156,11 @@
{/if}
{/each}
{:else}
<div class="empty">
This component doesn't have any additional settings.
<div class="text">This component doesn't have any additional settings.</div>
{/if}
{#if componentDefinition?.info}
<div class="text">
{@html componentDefinition?.info}
</div>
{/if}
@ -185,7 +188,7 @@
height: 100%;
gap: var(--spacing-s);
}
.empty {
.text {
font-size: var(--spectrum-global-dimension-font-size-75);
margin-top: var(--spacing-m);
color: var(--grey-6);

View file

@ -1381,6 +1381,7 @@
},
"dataprovider": {
"name": "Data Provider",
"info": "Pagination can only be used with data sources that are tables.",
"icon": "Data",
"styleable": false,
"hasChildren": true,