Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (27 sloc) 1.57 KB

Spacer block

The spacer provides a simple way to create some empty vertical whitespace.

Apart from all the default and common properties, this block only has the special property height, which should be set to the height of your spacer in pixels.

Spacer block properties

Property Value Desc.
type "spacer" Property to identify the spacer block
height integer The height of the spacer in pixels. Default is 50 pixels
container object Get access to the table cell that houses this block
margin mixed Whitespace around the block
padding mixed Whitespace around the block, this whitespace will have a background
background object The background of the block.

Example

A complete example of a spacer block is shown below.

{
    "from" : "info@example.com",
    "subject" : "Email with two images",
    "content" : {
        "blocks" : [ {
            "type" : "spacer",
            "height" : 50
        } ]
    }
}
You can’t perform that action at this time.