parent
Description
an optional HTML reference used as a menu parentType
HTMLElement
Example
<script>
let menu1 = null;
</script>
<Button type="primary" click={ev => menu1 = ev.target}>Click me (bottom menu)</Button>
{#if menu1}
<Portal>
<Menu {options} parent={menu1} on:click={clicked}></Menu>
</Portal>
{/if}
Related article: Setting the parent of Menu
Related sample: Menu basic