How to make custom widgets (typescript) communicate with each other?
To elaborate, whenever a button clicked on first custom widget it should update a label in the second custom widget (and vice versa).
HTML5, CSS, JavaScript, and JavaScript FrameworksEsri Young Professionals Network Esri webmap Esri Technical Support Rene Rubalcava
arcgis javascript api 4.x typescript #jsx #accessor
Hey Ranga Satish Kumar Tolapi
You could have another class that takes in these widgets and handles communication between them. There isn't a defined or suggested way to do this within the API. The custom widgets should just have events or properties that the other widget can listen to in order to update itself.
Thank you Matt Driscoll
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.