I am trying to replicate the code in "Need simple example: add tabs to widget" on GeoNet but I get: TypeError: Cannot read property 'domNode' of undefined
at Object._createTab (TabContainer.js?wab_dv=2.6:91)
Here are my files:
style.css:
.my-tab-node{
position:absolute !important;
width:100% !important;
height:auto !important;
top:0 !important;
bottom:0 !important;
}
Widget.html:
<div>
<div data-dojo-attach-point="tabIdentify">
<div class="my-tab-node" data-dojo-attach-point="tabNode1">
<h3>London</h3>
<p>London is the capital city of England.</p>
</div>
<div class="my-tab-node" data-dojo-attach-point="tabNode2">
<h3>Paris</h3>
<p>Paris is the capital of France.</p>
</div>
</div>
</div>
Widget.js:
define(['dojo/_base/declare'