laptop and a wrench

不具合

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

最後に公開された状態: November 20, 2015 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000086233
送信されましたMarch 19, 2015
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン3.14
オペレーティング システムWindows OS
オペレーティング システムのバージョン7 64 Bit
ステータスNon-Reproducible

参考情報

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

対処法

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

再現の手順

不具合 ID: BUG-000086233

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動