Magento 2 Override PageBuilder carousel/widget.js

I want to extend the 'initSlider' function from 'Magento_PageBuilder/js/content-type/products/appearance/carousel/widget'in my custom model with mixin.
var config = {
config: {
mixins: {
'Magento_PageBuilder/js/content-type/products/appearance/carousel/widget': {
'Vendor_Module/js/product-carousel-widget-mixin': true
}
}
}
};
var config = {
config: {
mixins: {
'Magento_PageBuilder/js/content-type/products/appearance/carousel/widget': {
'Vendor_Module/js/product-carousel-widget-mixin': true
}
}
}
};
define([
'jquery',
'Magento_PageBuilder/js/content-type/products/appearance/carousel/widget'
], function ($, CarouselWidget) {
'use strict';

return function (target) {
return target.extend({
initSlider: function () {

this._super();
}
});
};
});
define([
'jquery',
'Magento_PageBuilder/js/content-type/products/appearance/carousel/widget'
], function ($, CarouselWidget) {
'use strict';

return function (target) {
return target.extend({
initSlider: function () {

this._super();
}
});
};
});
If my mixin is in use, the core-file isnt running. When I change to false in the require-js.js file the core file is running. Someone can help me?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server