laptop and a wrench

Bogue

Unable to set the JavaScript Search widget placeholder to the 'All' category when using multiple sources.

Dernière publication: November 20, 2015 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000086233
EnvoiMarch 19, 2015
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée3.14
Système d’exploitationWindows OS
Version du système d’exploitation7 64 Bit
StatutNon-Reproducible

Informations supplémentaires

Use the allPlaceholder property to set custom text for the All Placeholder. This property is to be documented at the next release. s.allPlaceholder = "Enter address";

Solution de contournement

Use following work around: need to add "dojo/on" to the require //Change the place holder for the fist time document.getElementById("search_input").placeholder = "MY PLACEHOLDER"; //After you change the source and change it back to all //you will need to listten to the click event on(document.getElementsByClassName("searchMenu sourcesMenu")[0], "click", function(){ var element = document.getElementsByClassName("active")[0].innerHTML; if(element == "All"){ document.getElementById("search_input").placeholder = "MY PLACEHOLDER"; } });

Étapes pour reproduire

ID de bogue: BUG-000086233

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement