Want to override a base class- for e.g. the jimu/LauoutManager.js class...
Do you have example of doing this? Relatively new to dojo...
Getting error with something as simple as like:
define([
'dojo/_base/declare',
'dojo/_base/lang',
'jimu/LayoutManager',
'dojo/Deferred',
'require'
],
function (declare, lang, LayoutManager, Deferred, require) {
/* global jimuConfig:true */
var clazz = declare([LayoutManager], {
constructor: function (options, domId) {
}
});
return clazz;
});
And then including this derived class from the Widget.js class:
define([
...
'/custom/LayoutManager', // instead of the jimu/LayoutManager
...],
function (..., LayoutManager, ...) {
return declare([BaseWidget, _WidgetsInTemplateMixin], {
...
);
});
Getting:
Error: "scriptError"
c https://js.arcgis.com/3.25/init.js:11
d https://js.arcgis.com/3.25/init.js:35
init.js:37:266
src: dojoLoader init.js:37:318
info: Array ["/custom/LayoutManager", error]