AnsweredAssumed Answered

Javascript Search Widget (searchWidget.sources.push(sources))

Question asked by sachin.tiwari@cgg.com on May 23, 2016
Latest reply on May 23, 2016 by fcbassongis

Hi,

     Just would like to confirm that, the search widget is pushing search layer at right level or not ?

 

because when i try to push a source then it gets added in wrong heirchical level.

 

 

 

var sources = [ { declare only one source } ]

// Add to source(s)
var searchWidget = new Search();
searchWidget.sources.push(sources); 
//new source
searchWidget.startup();

 

Then it shows heirchy like

 

items

     [0]

     [1]

          [0] and here is my source (underneath of [1][0])

 

I believe my source should be at [1] level of heirchy.

 

Please correct me if i am missing anything.

 

Outcomes