Is there a way other than in dmxMasonry.js to change the breakpoints for small, medium, large, etc?
Also, I note that there is an xxl value in the .js file but that doesn't appear in the masonry options, nor does it work manually adding it to the code.
Something like that?
On my content page I added a page flow with auto-run and I call a javascript function initMasnrBrkpoints.
Or anyother way you like to do it
masonry1 is my masonry id
<script>
function initMasnrBrkpoints() {
const element = document.getElementById('masonry1');
if (element) {
console.log(element.dmxComponent.breakpoints);
element.dmxComponent.breakpoints.sm = 100;
element.dmxComponent.breakpoints.md = 200;
element.dmxComponent.breakpoints.lg = 300;
element.dmxComponent.breakpoints.xm = 400;
element.dmxComponent.breakpoints.xl = 500;
console.log(element.dmxComponent.breakpoints);
} else {
console.log('component not found in DOM');
}
}
</script>
So, look at the short video (until 0:30) without the breakpoint changes and then with the changes:
*at about 0:30 I switched to wappler, uncommented the javascript changes, saved and switch back to browser but it is not visible in the video...