The way I always do it is to use the props object. You just have to declare the property at the start of the widget just as usual and make sure that you set the context of the property to item. That property will then be autoset by the UI with the name of the item.
Hey Justin,
Thanks for that. This does - of course - work… I was just wondering, whether I could have gotten away without defining a new widget and just configuring a default (system) widget and using some of the underlying f7 properties.
Ah, I think I understand the question now. To my knowledge this is not feasible.
If you are just configuring one of these items via the metadata then it’s no more difficult to type the item name directly into the configuration than it is to type a variable and if you’re configuring multiple items it’s almost certainly to your benefit to make it a custom widget anyway (for example, if you decide on a change and only have to change one widget instead of each individual declaration).