{#each attributes as attr} {@const attrType = attr.type._class === core.class.RefTo ? getRefClassTo(attr.type) : undefined} { if (attr.isCustom) { ev.preventDefault() showMenu(ev, attr) } }} > {/each}