# CustomWidget PopOver - Item from parameter does not use the configuration of the specific widget, but the last widget

**URL:** <https://community.openhab.org/t/customwidget-popover-item-from-parameter-does-not-use-the-configuration-of-the-specific-widget-but-the-last-widget/113980>\
**Category:** UIs\
**Tags:** widget, openhab3\
**Created:** [January 12, 2021, 8:22pm UTC](https://community.openhab.org/t/customwidget-popover-item-from-parameter-does-not-use-the-configuration-of-the-specific-widget-but-the-last-widget/113980 "2021-01-12T20:22:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ysc](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/e480ec/32.png) [@ysc](https://community.openhab.org/u/ysc)\
**Post date:** [January 13, 2021, 7:34am UTC](https://community.openhab.org/t/customwidget-popover-item-from-parameter-does-not-use-the-configuration-of-the-specific-widget-but-the-last-widget/113980/2 "2021-01-13T07:34:36Z")

</div>

Interesting that you (almost) achieved to do it like this.  
I’d suggest another approach that is likely to work better:

Create a widget for the contents of your popover.  
Define props for the title and the item.

```yaml
uid: heating_control
props:
  parameterGroups: []
  parameters:
    - name: title
      label: Title
      type: TEXT
      description: The title
    - name: item
      label: Item
      type: TEXT
      context: item
      description: An item to control
tags: []
component: oh-slider-card
config:
  title: =props.title
  item: =props.item
  min: 10
  max: 25
  label: true
  scale: true

```

Then on your button use a `popover` action to open your other widget.

```yaml
component: oh-button
config:
  ...
  action: popover
  actionModal: widget:heating_control
  actionModalConfig:
    title: =props.room
    item: =props.itemTargetTemp

```

---

_[View the full topic](https://community.openhab.org/t/customwidget-popover-item-from-parameter-does-not-use-the-configuration-of-the-specific-widget-but-the-last-widget/113980)._
