Also by pure chance I found the answer to the other question in this post of @JustinG
The trick is to name the item “item” in the parameters list. Then is will automatically take the item the widget is attached to via Metadata.