ng2-semantic-ui
ng2-semantic-ui copied to clipboard
Add initial value to search
When using the sui-search component, it'd be helpful to set a value so that the input box is not empty when loading in previously added input.
If a value was loaded in, it shouldn't make a query to populate the dropdown.
Example:
<sui-search
initialValue="my value"
[optionsLookup]="optionsSearch"
optionsField="title"
(resultSelected)="last = $event"></sui-search>
Hi , I am also facing the issue of setting default value to the sui-search component(Remote lookup). I am using two search boxes and I am populating the value for one box based on the option choosen from the other. I am using a text boxes once option is selected from one of the box there by setting default value to the second box. ** ANOTHER ISSUE-I want to remove few options from the result of optionsLookup, but optionsFilter is not supported with optionsLookup**. What can be done?