mj_column: Column

Description Usage Arguments Function See Also Examples

View source: R/body.R

Description

Columns enable you to horizontally organize the content within your sections. They must be located under mj-section tags in order to be considered by the engine. To be responsive, columns are expressed in terms of percentage. Every single column has to contain something because they are responsive containers, and will be vertically stacked on a mobile view. Any standard component, or component that you have defined and registered, can be placed within a column – except mj-column or mj-section elements.

Usage

1

Arguments

...

Unnamed items that comprise this list of MJML tags.

Function

See Also

https://mjml.io/documentation/#mjml-column

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mj_ml(
  mj_body(
    mj_container(
      mj_section(
        mj_column(
          mj_text("First Column")
        ),
        mj_column(
          mj_text("Second Column")
        )
      ),
      mj_section(
        mj_column(
          mj_text("First Column")
        ),
        mj_column(
          mj_text("Second Column")
        ),
        mj_column(
          mj_text("Third Column")
        )
      )
    )
  )
)

JohnCoene/mjml documentation built on June 21, 2020, 11:42 a.m.