Use Case 1
As an example, in the example below, I click a child item in a list and trap with _itemclick.
Sub sduimenu1_itemclick(e As BANanoEvent)
Log(e)
Dim menuitem As SDUIMenuItem = Sender
Log(menuitem)
SDUIMDToast1.ShowInfo(menuitem.Tag)
End Sub
The log of e below, indicates that a child item was indeed clicked as per target.
Defined as
<li id="menuitem_5"><a id="menuitemanchor_5"><p id="menuitemtitle_5" class="text-2xl font-bold">Item - E</p></a></li>
The
Sender returned is indeed the menuitem_5, which works well with this use case.