-
Notifications
You must be signed in to change notification settings - Fork 220
sui-multiselect, how to preselect some options in case of multi-select from remote lookup #333
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
Comments
I tried to solve my similar problem, maybe help to you. |
@deepakgonda did you solve your issue? can you please provide the whole code related to remotelookup? |
You should be able to do this by making use of the |
@edcarroll I think I just ran into this issue. If I reproduced it correctly, when you set So, to be clear:
This is my lookup, which is pretty basic (and not hooked up to any API yet. Basically I want it to return an item with the contents the user typed).
And my template:
|
Actually, I found this exact condition in the code here: https://github.com/edcarroll/ng2-semantic-ui/blob/master/src/modules/select/components/multi-select.ts#L201-L205 This condition was introduced when itemsLookup was introduced initially in this commit 854e57e. On first glance I can't seem to see why the condition on Created a pull request here: #421 |
…alueField is not set.
Hi, is this still on a PR ? Will be very useful to have the initial parameter filled when using the whole object as value (without valueField on the select). Thanks ! |
Yes, I need this option, to allow it to select whole object as value without using valueField parameter. Thanks |
…alueField is not set.
Bug description:
I am making multiple select using sui-multiselect but since the options list are too heavy (more than 65000 results), I decided to use remote lookup options. All is working fine in case of search and select one option from the list. But I don't get how to preselect some options while initializing the form. Or on some other action on some other element.
Code:
component.html
component.ts
Version of Angular, ng2-semantic-ui, and Semantic UI:
Angular: 4.4.3
ng2-semantic-ui: 0.9.6
The text was updated successfully, but these errors were encountered: