Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add with-create functionality #29

Merged
merged 7 commits into from
Dec 18, 2018
Merged

add with-create functionality #29

merged 7 commits into from
Dec 18, 2018

Conversation

nickschot
Copy link
Owner

@nickschot nickschot commented Dec 17, 2018

screenshot 2018-12-17 at 20 24 31

Adds an option at the top of the list to create a new options with the specified term. An onCreate hook is triggered (instead of onChange) with the search term as an argument when it is selected.

Also adds the optional buildSuggestion argument to which a function can be passed for constructing the label that is shown in the create option.

@nickschot nickschot added the enhancement New feature or request label Dec 17, 2018
Modify default suggestion
@nickschot nickschot changed the title implement with-create functionality add with-create functionality Dec 18, 2018
@nickschot nickschot merged commit df1fa1e into master Dec 18, 2018
@nickschot nickschot deleted the feature/with-create branch December 18, 2018 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant