# Perspective Flex Repeater using build in Components

**URL:** <https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 16, 2021, 7:06pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210 "2021-12-16T19:06:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ToMakPo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tomakpo/32/23875_2.png) [@ToMakPo](https://forum.inductiveautomation.com/u/ToMakPo)\
**Post date:** [December 16, 2021, 7:06pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210/1 "2021-12-16T19:06:54Z")

</div>

Is it possible to use the built in components in the flex repeater? What I’ve been doing is building a view with just that one component in it, but that’s pretty annoying to have to keep doing if I could just point to the component it self.

---

<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:** [December 16, 2021, 8:48pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210/2 "2021-12-16T20:48:42Z")

</div>

- No, the flex repeater repeats **views**.
- You only have to create the view once and you use parameters to pass in what is to be displayed.
- On the flex repeater you create as many repeats as you require and set the input params on each instance to whatever is required.

It’s pretty straight forward. Explain more about what you’re trying to do if this doesn’t answer your question.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 16, 2021, 8:59pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210/3 "2021-12-16T20:59:56Z")

</div>

_Technically_ you can make a view that just contains a single component, but you have to do it by manually changing the view JSON; the UI will only allow you to use a container as the root component in a view.

You can Shift + Right Click the view node in the project browser to copy or paste the JSON structure of a view.

---

<div class="post-metadata">

**Author:** ![ToMakPo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tomakpo/32/23875_2.png) [@ToMakPo](https://forum.inductiveautomation.com/u/ToMakPo)\
**Post date:** [December 16, 2021, 10:40pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210/4 "2021-12-16T22:40:27Z")

</div>

Right now, I’m trying to create a flex repeater that dynamically returns a list of check boxes. But in the past, I was trying to do the same thing with labels, buttons, icons, and barcodes.

---

<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:** [December 16, 2021, 11:23pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210/5 "2021-12-16T23:23:04Z")

</div>

Copy this content, hold Shift, then right-click a View node - then select “Paste JSON”.

```auto
{
  "custom": {},
  "params": {},
  "props": {},
  "root": {
    "meta": {
      "name": "root"
    },
    "type": "ia.input.checkbox"
  }
}

```

Voila, a View which is a checkbox.

---

<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:** [December 16, 2021, 11:55pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210/6 "2021-12-16T23:55:17Z")

</div>

> But in the past, I was trying to do the same thing with labels, buttons, icons, and barcodes.

You are not being clear. Were these all individual views or were all the components in the one view. What was the problem? Show a screen grab or something. Write carefully and clearly.

---

<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:** [December 17, 2021, 2:34pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210/7 "2021-12-17T14:34:00Z")

</div>

I agree, and often wished the same. It feels like a redundant extra step to have to wrap the component in an extra view just to use it in a flex repeater.

---

<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:** [December 17, 2021, 2:39pm UTC](https://forum.inductiveautomation.com/t/perspective-flex-repeater-using-build-in-components/54210/8 "2021-12-17T14:39:07Z")

</div>

Clever, and I guess it removes one layer, but it still feels like an “unnecessary” step. 🙂
