# How to enable the dropdown menu in props section during react component build by ignition perspective SDK module?

**URL:** <https://forum.inductiveautomation.com/t/how-to-enable-the-dropdown-menu-in-props-section-during-react-component-build-by-ignition-perspective-sdk-module/81496>\
**Category:** Module Development\
**Tags:** sdk, perspective, ignition81\
**Created:** [November 4, 2023, 8:40am UTC](https://forum.inductiveautomation.com/t/how-to-enable-the-dropdown-menu-in-props-section-during-react-component-build-by-ignition-perspective-sdk-module/81496 "2023-11-04T08:40:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Md\_Sabbir\_Ahamed](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md_sabbir_ahamed/32/54273_2.png) [@Md\_Sabbir\_Ahamed](https://forum.inductiveautomation.com/u/Md_Sabbir_Ahamed)\
**Post date:** [November 4, 2023, 8:40am UTC](https://forum.inductiveautomation.com/t/how-to-enable-the-dropdown-menu-in-props-section-during-react-component-build-by-ignition-perspective-sdk-module/81496/1 "2023-11-04T08:40:03Z")

</div>

![sdk](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0fccdf0d986eee1c43eed798fad8a0fe5cea3121.png)  
Hello ignition experts,  
I am developing modules using the ignition perspective component SDK. I need help, Please look at the image I have attached in this post. I want to enable the dropdown menu in the props section of a component that I am building now, How can I enable this option in Java files of SDK.

---

<div class="post-metadata">

**Author:** ![Md\_Sabbir\_Ahamed](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md_sabbir_ahamed/32/54273_2.png) [@Md\_Sabbir\_Ahamed](https://forum.inductiveautomation.com/u/Md_Sabbir_Ahamed)\
**Post date:** [November 5, 2023, 3:09pm UTC](https://forum.inductiveautomation.com/t/how-to-enable-the-dropdown-menu-in-props-section-during-react-component-build-by-ignition-perspective-sdk-module/81496/2 "2023-11-05T15:09:08Z")

</div>

@paul-griffith Could you help me in this case??

---

<div class="post-metadata">

**Author:** ![Ahmed\_mohamed](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ahmed_mohamed/32/53025_2.png) [@Ahmed\_mohamed](https://forum.inductiveautomation.com/u/Ahmed_mohamed)\
**Post date:** [November 5, 2023, 6:57pm UTC](https://forum.inductiveautomation.com/t/how-to-enable-the-dropdown-menu-in-props-section-during-react-component-build-by-ignition-perspective-sdk-module/81496/3 "2023-11-05T18:57:23Z")

</div>

in your JSON you can add that in your prop like this

```auto
     "enum": {
            "type": "string",
            "enum": [
                "hand",
                "off",
                "auto"
            ],
            "description": "A pointless property to demonstrate the enum schema validator.",
            "default": "off"
        },

```

see the reference

> <https://github.com/inductiveautomation/ignition-sdk-examples/blob/master/perspective-component/common/src/main/resources/radimage.props.json>

---

<div class="post-metadata">

**Author:** ![Md\_Sabbir\_Ahamed](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md_sabbir_ahamed/32/54273_2.png) [@Md\_Sabbir\_Ahamed](https://forum.inductiveautomation.com/u/Md_Sabbir_Ahamed)\
**Post date:** [November 6, 2023, 2:29am UTC](https://forum.inductiveautomation.com/t/how-to-enable-the-dropdown-menu-in-props-section-during-react-component-build-by-ignition-perspective-sdk-module/81496/4 "2023-11-06T02:29:54Z")

</div>

> [@Ahmed\_mohamed](#):
>
> [https://github.com/inductiveautomation/ignition-sdk-examples/blob/master/perspective-component/common/src/main/resources/radimage.props.json](https://github.com/inductiveautomation/ignition-sdk-examples/blob/master/perspective-component/common/src/main/resources/radimage.props.json)

Thank you Vaiya, JajhakAllah Khair.

---

<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:** [November 6, 2023, 4:39pm UTC](https://forum.inductiveautomation.com/t/how-to-enable-the-dropdown-menu-in-props-section-during-react-component-build-by-ignition-perspective-sdk-module/81496/5 "2023-11-06T16:39:32Z")

</div>

Yep, `enum` is the type to use if you have a _strict_ list of allowable strings. You can also use `suggestions` if you have a list of possible options that is not necessarily complete (e.g. a format string):

```json
                                        "condition": {
                                            "type": "string",
                                            "suggestions": {
                                                "(empty)": "",
                                                "contains": "contains",
                                                "ends with": "ends with",
                                                "equals": "equals",
                                                "starts with": "starts with"
                                            },
                                            "default": ""
                                        },

```

---

<div class="post-metadata">

**Author:** ![Md\_Sabbir\_Ahamed](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md_sabbir_ahamed/32/54273_2.png) [@Md\_Sabbir\_Ahamed](https://forum.inductiveautomation.com/u/Md_Sabbir_Ahamed)\
**Post date:** [November 7, 2023, 2:50am UTC](https://forum.inductiveautomation.com/t/how-to-enable-the-dropdown-menu-in-props-section-during-react-component-build-by-ignition-perspective-sdk-module/81496/6 "2023-11-07T02:50:00Z")

</div>

Thank you PGrifith for helping. Yesterday I studied the radimage.props.json file and learned more new things. and I have successfully implemented this in props section as well.
