<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add numpicker to custom widget? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533091#M13916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Robert.&lt;BR /&gt;I added&amp;nbsp; the &lt;CODE&gt;_WidgetsInTemplateMixin &lt;/CODE&gt;to my code and now my widget fails to load, And I get this error message:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class="" data-link-actor-id="server0.conn0.child2/obj1623"&gt;Error: dijit._WidgetsInTemplateMixin: parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. Must pre-load all supporting widgets before instantiation.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any idea what's wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2020 07:42:44 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2020-08-31T07:42:44Z</dc:date>
    <item>
      <title>How to add numpicker to custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533089#M13914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've spent many hours reading documentation and learned the basics of Javascript, CSS, Dojo, Javascript API and feel like I'm ready to start developing my own custom widgets. But I'm running into trouble right away.&lt;/P&gt;&lt;P&gt;I just want to add some controls like a couple of numberpickers, a button and a couple of Radiobuttons to a widget. I started with the sample demo widget and looked at the code in some of the otb-widgets and tried to do the same, I want my numpickers and buttons to look the same as the do in the otb-widgets.&lt;/P&gt;&lt;P&gt;This is what my widget.html looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;div&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;div&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;${nls.label1}.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;div&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;${nls.label2}.[${config.configText}]&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;div&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"mapIdNode"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;div&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"vertexCount"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"minAge"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-type&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"dijit/form/NumberSpinner"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-a11y-label-by&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"locationLabel_fontSize"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;width:100px;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-props&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;'value:0,smallDelta:1,constraints:{min:0,max:125},intermediateChanges:true'&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;gt;&amp;lt;/input&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"maxAge"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-type&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"dijit/form/NumberSpinner"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-a11y-label-by&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"locationLabel_fontSize"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;width:100px;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-props&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;'value:125,smallDelta:1,constraints:{min:0,max:125},intermediateChanges:true'&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;gt;&amp;lt;/input&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;div&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;role&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"button"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"jimu-btn"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"btnUndo"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-event&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"onclick:_onBtnUndoClicked"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;tabindex&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Button&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;br&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;div&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-type&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"dijit/form/Form"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"preserveFormDijit"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"radio"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"radio0"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-type&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"dijit/form/RadioButton"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-props&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"name:'preserveScale',checked:true,value:'true'"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;label&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"radio0Label"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Radio&amp;nbsp;1&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;/label&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;br&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"radio"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"radio1"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-type&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"dijit/form/RadioButton"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-props&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"name:'preserveScale',value:'false'"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;label&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;"radio1Label"&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;Radio&amp;nbsp;2&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;/label&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #800000;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is my widget.js&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;define([&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'dojo/_base/declare'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'jimu/BaseWidget'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'dijit/form/NumberSpinner'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(declare,&amp;nbsp;BaseWidget)&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;//To&amp;nbsp;create&amp;nbsp;a&amp;nbsp;widget,&amp;nbsp;you&amp;nbsp;need&amp;nbsp;to&amp;nbsp;derive&amp;nbsp;from&amp;nbsp;BaseWidget.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;declare&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;([BaseWidget],&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;//&amp;nbsp;DemoWidget&amp;nbsp;code&amp;nbsp;goes&amp;nbsp;here&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;//please&amp;nbsp;note&amp;nbsp;that&amp;nbsp;this&amp;nbsp;property&amp;nbsp;is&amp;nbsp;be&amp;nbsp;set&amp;nbsp;by&amp;nbsp;the&amp;nbsp;framework&amp;nbsp;when&amp;nbsp;widget&amp;nbsp;is&amp;nbsp;loaded.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;//templateString:&amp;nbsp;template,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;baseClass:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'jimu-widget-demo'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_onBtnUndoClicked:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;._undoManager.undo();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;postCreate:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;()&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.inherited(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;arguments&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'postCreate'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startup:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;()&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.inherited(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;arguments&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.mapIdNode.innerHTML&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'map&amp;nbsp;id:'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;+&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.map.id;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;'startup'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The button looks like I want, but the numpickers just looks like ordinary text inputs, and so does the radiobuttons...&lt;/P&gt;&lt;P&gt;This is how it looks:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/504725_pastedImage_11.png" /&gt;&lt;/P&gt;&lt;P&gt;I want the numpickers to look like they do for example in the drawWidget:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/504726_pastedImage_12.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also looked att the samples at The Dojo Toolkit Reference Guide but I don't really know how to use thoose samples in the WAB widget context as it's not like starting from scratch a plain html-file.&lt;/P&gt;&lt;P&gt;What am I missing? something in the define([...], function (...&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;Or is it CSS? haven't found anyhting specific in the otb widgets styles that i think i should have copied as well. I'm thinking the styles porbably would be defined somewere else in the WAB-code when don't want a custom style.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2020 14:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533089#M13914</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2020-08-27T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add numpicker to custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533090#M13915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When using dojo dijits in your widgets template you need to use a Mixin in your code.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;define&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'dojo/_base/declare'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'jimu/BaseWidget'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'dijit/_WidgetsInTemplateMixin'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'dijit/form/NumberSpinner'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;declare&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; BaseWidget&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; _WidgetsInTemplateMixin&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;//To create a widget, you need to derive from BaseWidget.&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;declare&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;BaseWidget&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; _WidgetsInTemplateMixin&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533090#M13915</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T23:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to add numpicker to custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533091#M13916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Robert.&lt;BR /&gt;I added&amp;nbsp; the &lt;CODE&gt;_WidgetsInTemplateMixin &lt;/CODE&gt;to my code and now my widget fails to load, And I get this error message:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class="" data-link-actor-id="server0.conn0.child2/obj1623"&gt;Error: dijit._WidgetsInTemplateMixin: parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. Must pre-load all supporting widgets before instantiation.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any idea what's wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2020 07:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533091#M13916</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2020-08-31T07:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add numpicker to custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533092#M13917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the answer in another thread &lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/668576-re-cant-use-dojo-declarative-method?commentID=668576#comment-668576" title="https://community.esri.com/message/668576-re-cant-use-dojo-declarative-method?commentID=668576#comment-668576"&gt;https://community.esri.com/message/668576-re-cant-use-dojo-declarative-method?commentID=668576#comment-668576&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I forgot I had radiobutton dijits inte the html as well, adding that to the requriments fixed it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2020 08:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-add-numpicker-to-custom-widget/m-p/533092#M13917</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2020-08-31T08:39:24Z</dc:date>
    </item>
  </channel>
</rss>

