hi, all! After adding my first custom widget to the View (the TableWidget from the tutorial) I got this error.
TypeError {} "TypeError: Cannot set property 'innerHTML' of undefined at declare.updateDataSourceInfoLabel (http://localhost:5001/extensions/tableWidget/TableWidget.js:83:32) at null.<anonymous> (http://localhost:5001/extensions/tableWidget/TableWidget.js:67:14) at k (http://js.arcgis.com/3.15/init.js:189:431) at q (http://js.arcgis.com/3.15/init.js:189:357) at resolve (http://js.arcgis.com/3.15/init.js:191:441) at a (http://js.arcgis.com/3.15/init.js:190:311) at k (http://js.arcgis.com/3.15/init.js:190:70) at q (http://js.arcgis.com/3.15/init.js:189:357) at resolve (http://js.arcgis.com/3.15/init.js:191:441) at a (http://js.arcgis.com/3.15/init.js:190:311) ----------------------------------------
I followed steps from https://developers.arcgis.com/javascript/jshelp/operations-dashboard-extensibility-create-ext-widget.html
just in case, see all my widget files attached.
Alex,
No where in your tableWidget.js or your empty tableWidgetTemplate.html does the infoLabel var exist... Normally in the tableWidgetTemplate.html html code there would be a div or some other html element that would have a data-dojo-attach-point="infoLabel" property on it.
I knew there was some stupid error on my end. Thank you!
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.