ng2-semantic-ui icon indicating copy to clipboard operation
ng2-semantic-ui copied to clipboard

Add initial value to search

Open bputt opened this issue 6 years ago • 1 comments

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>

bputt avatar Sep 11 '18 20:09 bputt

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?

preethis610 avatar Oct 02 '18 11:10 preethis610