Skip to content

[FEATURE] make it possible to 'create new options' when the user did not find items (extra option like the 'no Entries found' option) #345

@pieterdegraeuwe

Description

@pieterdegraeuwe

Is your feature request related to a problem? Please describe.

At this point, when the user is typing/searching, at a moment it might occur that no options are available.
The message can be configured with the [noEntriesFoundLabel]. Works as expected.
However sometimes it should be possible to create the 'not found item'. the [noEntriesFoundLabel] could then be 'No items found, press Enter to create one.'
This could emit an event with the search criteria or something like that

Describe the solution you'd like
I think the easiest solution would be to add an eventemitter which emits when the user presses Enter when the [noEntriesFoundLabel] was shown

Describe alternatives you've considered
adding an extra button next to the options, but this is not really userfriendly... just hitting Enter is much more convenient

Note that I don't expect a full handling of the creation of options. This is case buy case very specific.
However, it should be possible to trigger the start of that creation, for example by using an event.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions