# Ignition Perspective widget

**URL:** <https://forum.inductiveautomation.com/t/ignition-perspective-widget/88278>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [April 3, 2024, 8:50am UTC](https://forum.inductiveautomation.com/t/ignition-perspective-widget/88278 "2024-04-03T08:50:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![narayan.naik](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@narayan.naik](https://forum.inductiveautomation.com/u/narayan.naik)\
**Post date:** [April 3, 2024, 8:50am UTC](https://forum.inductiveautomation.com/t/ignition-perspective-widget/88278/1 "2024-04-03T08:50:46Z")

</div>

Hi,  
I am trying to use Perspective dashboard component add widgets to it but later I want to pass a tag path to each widget so that end user could selecta tag and assign it to the widget.

Can you please guide me for it. I was thinking of using Tag tree component on popup on clicking the widget.

---

<div class="post-metadata">

**Author:** ![Ryan\_Ahlstrom](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@Ryan\_Ahlstrom](https://forum.inductiveautomation.com/u/Ryan_Ahlstrom)\
**Post date:** [April 3, 2024, 1:52pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-widget/88278/2 "2024-04-03T13:52:10Z")

</div>

We found the easiest was with a dropdown menu built into widget component. User selects the tag from a list and then click a button that updates the path and in turn the binding.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 3, 2024, 2:06pm UTC](https://forum.inductiveautomation.com/t/ignition-perspective-widget/88278/3 "2024-04-03T14:06:56Z")

</div>

Agreed.

- In the widget create a parameter `tagOptions`.
- Add the dropdown to the widget's config mode view.
- Create a property binding on the widget dropdown options to `view.params.tagOptions`.
- On the dashboard or in the session props or wherever suits from a maintenance point of view, create a list of tag paths and friendly names.

```auto
[
  {
    "value": "[default]myTag0",
    "label": "Sultana packer speed"
  },
  {
    "value": "[default]myTag1",
    "label": "Raisin packer speed"
  },
  {
    "value": "[default]myTag2",
    "label": "Date de-stoning kg"
  }
]

```

- Bind the widget's `tagOptions` parameter to the list of options.

---

<div class="post-metadata">

**Author:** ![narayan.naik](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@narayan.naik](https://forum.inductiveautomation.com/u/narayan.naik)\
**Post date:** [April 15, 2024, 4:09am UTC](https://forum.inductiveautomation.com/t/ignition-perspective-widget/88278/4 "2024-04-15T04:09:53Z")

</div>

Dhanyawad (Thank you) !
