# Changes UI Components Properties from JS Side

**URL:** https://forums.fusetools.com/t/changes-ui-components-properties-from-js-side/5640
**Category:** Bug Reports
**Created:** [December 21, 2015, 6:47pm UTC](https://forums.fusetools.com/t/changes-ui-components-properties-from-js-side/5640 "2015-12-21T18:47:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![info4](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@info4](https://forums.fusetools.com/u/info4)
#### Post date: [December 21, 2015, 6:47pm UTC](https://forums.fusetools.com/t/changes-ui-components-properties-from-js-side/5640/1 "2015-12-21T18:47:15Z")

</div>

Can I update UI components with their ux:name from JS Side? I want to change some properties of ui elements based on response data. Like:

fetch(url)-\>then(){ if data.x = 1 panel1.visibility = “hidden” }

---

<div class="post-metadata">

### Author: ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)
#### Post date: [December 21, 2015, 6:56pm UTC](https://forums.fusetools.com/t/changes-ui-components-properties-from-js-side/5640/2 "2015-12-21T18:56:47Z")

</div>

No. This is considered bad practice in FuseJS, as JS and UI is running on separate threads.

However, you can data-bind any property to an `Observable`, and then change the `.value` of the `Observable`. This will take care of the async dispatching.
