<aside> 👉
Links (Block base class)
Notion Ruby Mapping Public API Reference
</aside>
Creates a ColumnListBlock object. Each element of array_of_sub_blocks represents the child Block or Blocks contained in one column and is converted into a ColumnBlock.
[Block1, Block2, ...] ... creates one column for each Block[[Block1a, Block1b], [Block2a, Block2b], ...] ... creates columns containing multiple BlocksStandardError ... raised with The column_list must have at least 2 columns. when fewer than two columns are specifiedcolumn_list = ColumnListBlock.new [
[
ParagraphBlock.new("Left column"),
CalloutBlock.new("Second left block", emoji: "✅"),
],
ParagraphBlock.new("Right column"),
]
<aside> ⚠️
A ColumnListBlock must contain at least two columns. When it is created through the Notion API, each column must contain at least one child Block. Its direct children are ColumnBlock objects; other Block types cannot be appended directly.
</aside>
Appends one or more ColumnBlock objects to an existing ColumnListBlock.
start, end, or niltrueColumnBlock, an Array of created Blocks, or a String when dry_run is trueStandardError ... raised with Column list block can only append column blocks. when a non-Column Block is specifiedcolumn = ColumnBlock.new ParagraphBlock.new("Added column")
column_list.append_block_children column