Hello,
I am coming back again with a newbie question but I am scratching my head for hours trying to solve this and reading the docs. Basically, for learning purposes, I am trying to build a simple component with two drop zones for labels, here is the html code:
<center style="font-style:italic; color:#888; margin: 3em;">
<div class="my_card">
<div class="weekday">
<div anvil-drop-here></div>
<div anvil-slot></div>
</div>
<div class="my_card_info">
<div class="my_card_title">
<div anvil-drop-here></div>
<div anvil-slot></div>
</div>
</div>
</div>
</center>
Problem is that when I drag and drop a label onto it, it gets added after and does not get dropped into the drop slots I created. If I change the code
<div anvil-slot></div>
to <div anvil-slot="default"></div>
then every dropped component gets added to the changed div.
It’s probably a silly question but how would you do what I am trying to achieve?