# Disable all components of a perspective flex container?

**URL:** <https://forum.inductiveautomation.com/t/disable-all-components-of-a-perspective-flex-container/66930>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 25, 2022, 3:25pm UTC](https://forum.inductiveautomation.com/t/disable-all-components-of-a-perspective-flex-container/66930 "2022-11-25T15:25:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 25, 2022, 3:25pm UTC](https://forum.inductiveautomation.com/t/disable-all-components-of-a-perspective-flex-container/66930/1 "2022-11-25T15:25:21Z")

</div>

Is there a way to disable all components of a perspective flex container ?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [November 25, 2022, 3:39pm UTC](https://forum.inductiveautomation.com/t/disable-all-components-of-a-perspective-flex-container/66930/2 "2022-11-25T15:39:36Z")

</div>

You can do them all in one "batch", but this still requires you having selected all of them into a group with either individual Ctrl clicks or a blanket Shift click. There is no "disable all child components" option.

---

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [November 26, 2022, 3:22pm UTC](https://forum.inductiveautomation.com/t/disable-all-components-of-a-perspective-flex-container/66930/3 "2022-11-26T15:22:31Z")

</div>

While not exactly disabling, if they were all in the same container, you could hide the container (set display to false).

Programmatically, you could do something like:

```auto
	parent = self.getParent() # or other handle to container
	children = parent.getChildren()
	for child in children:
		child.props.enabled = False

```

This works because most (all?) input components have an enabled property, and for those that don't setting an unused property should be harmless.

These are "runtime" options. I would go with cmallonee's answer for design time disabling.

HTH.  
-Shane
