# Perspective Mouse Click & Drag

**URL:** <https://forum.inductiveautomation.com/t/perspective-mouse-click-drag/28583>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 26, 2019, 1:55pm UTC](https://forum.inductiveautomation.com/t/perspective-mouse-click-drag/28583 "2019-09-26T13:55:07Z")\
**Posts on this page:** 1\
**Showing post:** 40

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [November 2, 2022, 8:53am UTC](https://forum.inductiveautomation.com/t/perspective-mouse-click-drag/28583/40 "2022-11-02T08:53:28Z")

</div>

Gotcha 🧙

```auto
const view = [...window.__client.page.views._data.values()].find(view => view.value.mountPath == this.parentNode.parentNode.getAttributeNode('data-component-path').value.split('.')[0]).value;

```

you can than do things like `view.custom.read('yourprop')`, `view.custom.write('yourprop', thevalue)`, `view.props.write('yourprop', thevalue)`, `view.params.read('key')`  
you could dig into the children/root too, but you should probably just use bindings to the custom props unless you know what you are doing 😛

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-mouse-click-drag/28583)._
