Hello,
Is there any working example for extending a class with mixin ?
According to the documentation, "Extending multiple classes is deprecated at 4.13". So I try to migrate a class extending accessor and evented. I used to have this piece of code in my class:
Implementing Accessor | ArcGIS API for JavaScript 4.13
import Evented = require("dojo/Evented");
import Accessor = require("esri/core/Accessor");
import { subclass, declared } from "esri/core/accessorSupport/decorators";
interface Collection extends Evented {}
@subclass("esri.guide.Collection")
class Collection extends declared(Accessor, Evented) { }
But following the new example, I don't quite understand:
Implementing Accessor | ArcGIS API for JavaScript 4.13
I do not wan't to define my own "emit" and "on" functions but rather use the one from dojo evented.
To me both examples are not equivalent. It would be nice to have a more detailed example !
Thanks