Skip to content

How to achieve multiple create items in USelectMenu/UInputMenu? #6535

Description

@KazimirPodolski

Package

v4.x

Description

I'm using a USelectMenu to select over multiple entities. I would like to have a separate create item for each. However, currently only 1 create item seems to be supported directly.

If I naively just include my own create items (of type: 'item') with appropriate onSelect, then they get filtered out by the search.

Workarounds:

  1. Make a default create item followed by a modal/popover asking which type of item the user actually wants. Working, but awkward UX.
  2. Make naive create items always include the search term so they are not filtered out. Works but meh?..

Proposal: if currently there is no clean way, then add new property always to an item of type: 'item' which excludes the item from filtering. The property also easily covers all cases of create-item, so the latter can even be deprecated if desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions