Timeline for Magento2 rewrite javascript file from a core module in a custom module
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 29, 2016 at 14:19 | comment | added | Lachezar Raychev | yeah, with a mixture between your answer and the github one I made it work, thank you! | |
Feb 29, 2016 at 14:19 | vote | accept | Lachezar Raychev | ||
Feb 29, 2016 at 12:22 | comment | added | Lachezar Raychev | I remove pub/static and deploy new static content after every change... what exactly is arguments ? | |
Feb 29, 2016 at 12:21 | comment | added | Lachezar Raychev | tried this as code for default_mixin ... not working as well ... define(function () { 'use strict'; var mixin = { reload:function (){ console.log('ddd'); alert('3333'); } } return function (target) { // target == Result that Magento_Ui/.../default returns. return target.extend(mixin); // new result that all other modules receive }; }); | |
Feb 29, 2016 at 12:13 | comment | added | Lachezar Raychev | is this still a valid solution, because i see its over 6 months old ? github.com/magento/magento2/issues/1864 | |
Feb 29, 2016 at 12:12 | comment | added | Lachezar Raychev | Not working.... var config = { config : { mixins: { 'Magento_Ui/web/js/grid/provider': { // Target module 'MyVendor_MyModule/js/default_mixin': true // Extender module } } } }; .. and the code in default_mixin.js is exact copy/paste from the example code you gave, but no console.log or alert what so ever... | |
Feb 29, 2016 at 10:43 | history | answered | KAndy | CC BY-SA 3.0 |