If you include a parameter with the name of item in a widget and assign that widget as the default standalone or list widget for an item, you don’t even need to configure the item property in the metadata, the UI will automatically populate the item parameter with the name of that item.
Here’s an example:
The parameters for my custom list item for blinds look like this:
props:
parameters:
- description: Label to show
label: Item Label
name: Label
required: false
type: TEXT
- context: item
description: An item to control
label: Item
name: item
required: false
type: TEXT
parameterGroups: []
In the metadata for one of my blinds items I have:
value: widget:widget_blinds_default
config:
Label: Bedroom Blinds
You can see that I configure the Label parameter but not the item parameter.
In the equipment list, my item is still properly displayed because the item parameter is automatically set by the UI.
