Se rendre au contenu
Menu
Cette question a été signalée
3878 Vues
class FavoriteMenu extends DropdownMenu {
 constructor() {
super(...arguments);
this.model = useModel('searchModel');              this.state.deletedFavorite = false;
}
}

I want to extend the constructor of `FavoriteMenu` .. like adding console.log after super(...arguments)

So the result would be redefining the main constructor in  custom file but the result is obtained in the main file

I've tried `FavoriteMenu.include` and `FavoriteMenu.prototype.cconstructor`but they didn't work


any hint?

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mars 24
7167
0
janv. 21
8535
2
juin 22
11537
0
oct. 22
571
1
août 21
4542