Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Add arrays support for deferred chips #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

victordidenko
Copy link

This pull-request is similar to #36, but adds also arrays support for deferred chips.
When user enters text -- render function performs request to server and adds all returned results to chips.

@mohbasheer
Copy link
Owner

Thanks for the Pull Request.

Could you please explain me the use case like when its required.

@victordidenko
Copy link
Author

As I wrote -- when user enters text, render function performs request to server and adds all returned results to chips. If user don't remember exact name of a chip (or whatever it is in the interface), but remembers part of it. And after that user can remove unnecessary items.
array

@victordidenko
Copy link
Author

It is possible to achieve that by modifying model value, but in that case red items ("qwer" in gif above) will disappear. So we need support from library here.

@mohbasheer
Copy link
Owner

I got it. Could you add sample implementation of the same in samples. It will help me lot.

@victordidenko
Copy link
Author

Sure, added "Using Promise, returning array (with list of string)" to examples.
You can type "korea" to get both Koreas at once, or "republic" to get all Republics.
Also, fixed deletion of chips.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants