# UI-List \[feature Request\] do not show menu button if empty

**URL:** <https://discourse.nodered.org/t/ui-list-feature-request-do-not-show-menu-button-if-empty/83957>\
**Category:** Feature Requests\
**Tags:** node-red-dashboard\
**Created:** [22 December 2023 13:01 UTC](https://discourse.nodered.org/t/ui-list-feature-request-do-not-show-menu-button-if-empty/83957 "2023-12-22T13:01:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![novski](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/novski/32/23243_2.png) [@novski](https://discourse.nodered.org/u/novski)\
**Post date:** [22 December 2023 13:01 UTC](https://discourse.nodered.org/t/ui-list-feature-request-do-not-show-menu-button-if-empty/83957/1 "2023-12-22T13:01:03Z")

</div>

Would it be fusible to let the menu button in UI-List items not appear if no payload.menu item is present?  
I have a List where some items would not need any menu and some do.  
When I select the action type "Menu" in the node, it creates a Menu Button for each item in the List.  
Those Menus that do not have any payload.menu entries have an ugly appearance because the list of menu items appears when I click the hamburger menu, but it is very thin because it has no options.  
 ![Bildschirmfoto 2023-12-22 um 13.59.44](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/013cc73e6c979da1c01c506d656467cc63fd4d43.png)

Testflow:

```auto
[
    {
        "id": "f577f7cb.d19068",
        "type": "ui_list",
        "z": "ee47c5e8.e17bd",
        "group": "7e4c65d6.0419cc",
        "name": "",
        "order": 3,
        "width": "6",
        "height": "2",
        "lineType": "one",
        "actionType": "menu",
        "allowHTML": false,
        "outputs": 1,
        "x": 290,
        "y": 420,
        "wires": [
            [
                "ad3b8b.58131c78"
            ]
        ]
    },
    {
        "id": "f0859d08.93b8a8",
        "type": "inject",
        "z": "ee47c5e8.e17bd",
        "name": "Move",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "[{\"title\":\"Direction\",\"menu\":[\"East\",\"West\",\"South\",\"North\"]},{\"title\":\"Speed\"}]",
        "payloadType": "json",
        "x": 110,
        "y": 420,
        "wires": [
            [
                "f577f7cb.d19068"
            ]
        ]
    },
    {
        "id": "ad3b8b.58131c78",
        "type": "debug",
        "z": "ee47c5e8.e17bd",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 450,
        "y": 420,
        "wires": []
    },
    {
        "id": "7e4c65d6.0419cc",
        "type": "ui_group",
        "name": "Default",
        "tab": "2f52ec48.3a82cc",
        "order": 1,
        "disp": true,
        "width": "12",
        "collapse": false
    },
    {
        "id": "2f52ec48.3a82cc",
        "type": "ui_tab",
        "name": "List",
        "icon": "dashboard"
    }
]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 February 2024 13:01 UTC](https://discourse.nodered.org/t/ui-list-feature-request-do-not-show-menu-button-if-empty/83957/2 "2024-02-20T13:01:37Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
