If you want to place the Search widget in a container of your choosing, you should specify the ID of the container (or a reference to the container element) in the container property of the widget's constructor. In this case, you would also not use view.ui.add.
const searchWidget = new Search({ view: view, container: "myElementID", allPlaceholder: "Enter Search Text", //etc });
HelloI run a query by creating a query feature layer.I have a small problem can you help me?
Can you describe what problem you're having?
I can get the results I want with the sample code.I can see this with console.log.How can I display this result in a container
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.