Wiki

Clone wiki

adf-builder-java / node-layoutSection

Node: layoutSection

Description

In Confluence, the top-level doc node is allowed to include layoutSection nodes. These in turn contain exactly two or three layoutColumn nodes that wrap other content. The effect is similar to declaring a table with no visible border, exactly one tableRow and that number of tableCells within the row.

Example

Java

layoutSection(
        layoutColumn(40).content(p("Hello world")),
        layoutColumn(60).content(p("Hello world again"))
);

ADF

{
  "type": "layoutSection",
  "content": [
    {
      "type": "layoutColumn",
      "attrs": {
        "width": 40
      },
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "Hello world"
            }
          ]
        }
      ]
    },
    {
      "type": "layoutColumn",
      "attrs": {
        "width": 60
      },
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "Hello world again"
            }
          ]
        }
      ]
    }
  ]
}

Compatibility

Products

Confluence Jira

Usage

Marks

Structure

  • type - layoutSection
  • content - array(layoutColumn, layoutColumn, layoutColumn?) – exactly 2 or 3 columns
  • marks? - array(breakout)

Updated