Appearance
Topol Section
You are reading the Email Editor v3 docs
Email Editor v4 is the current version. See this page in the v4 docs, or how to upgrade to v4.
A section is the mj-section row that spans the template width and lays out its columns. It is the top-level structural unit inside the template body.
ts
type TopolSection = {
tagName: "mj-section";
attributes: {
"full-width": string;
padding: string;
"background-color"?: string;
"border-top"?: string;
"border-right"?: string;
"border-left"?: string;
"border-bottom"?: string;
"in-group"?: boolean; //do not stack on mobile
"background-url"?: string;
"background-size"?: string;
"background-repeat"?: string;
containerWidth?: number;
"css-class"?: "hide_section_on_desktop" | "hide_section_on_mobile";
};
children: TopolColumn[];
layout: number;
backgroundColor?: null | string;
backgroundImage?: null | string;
paddingTop: number | string;
paddingBottom: number | string;
paddingLeft: number | string;
paddingRight: number | string;
uid: string;
};