problem searchOptions Directions

2222
1
01-11-2016 12:25 AM
lasinh
by
New Contributor III

How to set searchOptions Directions is  at runtime (after the widget's initialization) ?

0 Kudos
1 Reply
Drew
by
Occasional Contributor III

Better late that never.. Someone will find this useful I am sure.

Sample

 var locator = new Locator(this.config.locatorAddress);
  var mySearchOptions = {
       sources: [
            {
                 "locator": locator,
                 "name": "Geocoding Service",
                 "placeholder": "Search Address...",
                 "enableSuggestions": true,
            }
       ]
      
  };‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍


Drew