{#if expanded} {#each widgetData.layout as layoutGroup} {#if isWidgetSpanRow(layoutGroup)} {:else if isWidgetSpanColumn(layoutGroup)} Error: The WidgetSpan used here should be a row not a column {:else if isWidgetSection(layoutGroup)} {:else} Error: The widget that belongs here has an invalid layout group type {/if} {/each} {/if}