<?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 How to override a base class in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-override-a-base-class/m-p/533688#M49753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Want to override a base class- for e.g. the jimu/LauoutManager.js class...&lt;/P&gt;&lt;P&gt;Do you have example of doing this?&amp;nbsp; Relatively new to dojo...&lt;/P&gt;&lt;P&gt;Getting error with something as simple as like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt; 'dojo/_base/declare',&lt;BR /&gt; 'dojo/_base/lang',&lt;BR /&gt; 'jimu/LayoutManager',&lt;BR /&gt; 'dojo/Deferred',&lt;BR /&gt; 'require'&lt;BR /&gt;],&lt;/P&gt;&lt;P&gt;&amp;nbsp; function (declare, lang, LayoutManager, Deferred, require) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; /* global jimuConfig:true */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var clazz = declare([LayoutManager], {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; constructor: function (options, domId) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; return clazz;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then including this derived class from the Widget.js class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt;...&lt;BR /&gt;'/custom/LayoutManager',&amp;nbsp; // instead of the jimu/LayoutManager&lt;BR /&gt;...],&lt;/P&gt;&lt;P&gt;function (..., LayoutManager, ...) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; return declare([BaseWidget, _WidgetsInTemplateMixin], {&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp; );&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting:&lt;/P&gt;&lt;P&gt;Error: "scriptError"&lt;BR /&gt; c https://js.arcgis.com/3.25/init.js:11&lt;BR /&gt; d https://js.arcgis.com/3.25/init.js:35&lt;BR /&gt;init.js:37:266&lt;BR /&gt;src: dojoLoader init.js:37:318&lt;BR /&gt;info: Array ["/custom/LayoutManager", error]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2019 20:29:00 GMT</pubDate>
    <dc:creator>EdwardSon_</dc:creator>
    <dc:date>2019-09-27T20:29:00Z</dc:date>
    <item>
      <title>How to override a base class</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-override-a-base-class/m-p/533688#M49753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Want to override a base class- for e.g. the jimu/LauoutManager.js class...&lt;/P&gt;&lt;P&gt;Do you have example of doing this?&amp;nbsp; Relatively new to dojo...&lt;/P&gt;&lt;P&gt;Getting error with something as simple as like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt; 'dojo/_base/declare',&lt;BR /&gt; 'dojo/_base/lang',&lt;BR /&gt; 'jimu/LayoutManager',&lt;BR /&gt; 'dojo/Deferred',&lt;BR /&gt; 'require'&lt;BR /&gt;],&lt;/P&gt;&lt;P&gt;&amp;nbsp; function (declare, lang, LayoutManager, Deferred, require) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; /* global jimuConfig:true */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var clazz = declare([LayoutManager], {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; constructor: function (options, domId) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; return clazz;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then including this derived class from the Widget.js class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt;...&lt;BR /&gt;'/custom/LayoutManager',&amp;nbsp; // instead of the jimu/LayoutManager&lt;BR /&gt;...],&lt;/P&gt;&lt;P&gt;function (..., LayoutManager, ...) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; return declare([BaseWidget, _WidgetsInTemplateMixin], {&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp; );&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting:&lt;/P&gt;&lt;P&gt;Error: "scriptError"&lt;BR /&gt; c https://js.arcgis.com/3.25/init.js:11&lt;BR /&gt; d https://js.arcgis.com/3.25/init.js:35&lt;BR /&gt;init.js:37:266&lt;BR /&gt;src: dojoLoader init.js:37:318&lt;BR /&gt;info: Array ["/custom/LayoutManager", error]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 20:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-override-a-base-class/m-p/533688#M49753</guid>
      <dc:creator>EdwardSon_</dc:creator>
      <dc:date>2019-09-27T20:29:00Z</dc:date>
    </item>
  </channel>
</rss>

