laptop and a wrench

Erro

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

Última Publicação: November 20, 2015 ArcGIS API for JavaScript
Número de ID do Erro BUG-000086233
EnviadoMarch 19, 2015
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada3.14
Sistema OperacionalWindows OS
Versão do Sistema Operacional7 64 Bit
StatusNon-Reproducible

Informações Adicionais

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";

Solução Provisória

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"; } });

Etapas para Reproduzir

ID do Erro: BUG-000086233

Software:

  • ArcGIS API for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download