Devices

Handles changes and settings related to different devices, ensuring optimal performance and user experience across various platforms.
mailui.init({ defaultDevice: "desktop", devices: ["desktop", "tablet", "mobile"] });

Available Device Sizes #

desktop tablet mobile

Listener #

The device:changed event listener is triggered whenever there is a change in the device being used. This event helps in adapting the interface or functionality to suit the new device, ensuring a seamless user experience across different devices.
mailui.addEventListener("device:changed", function (data: { device: string }) { // Save device changes });

Explore Our Email Builder