Description Usage Arguments Details Value Examples
addChildren
facilitates adding children blocks to parent blocks that
have not yet been posted (providing the block type allows children).
Currently this includes "paragraph", "bulleted_list_item", "numbered_list_item",
"toggle", "to_do", "quote", "callout", "synced_block", "template", "column",
"child_page", and "child_database".
1 | addChildren(parentBlock, ...)
|
parentBlock |
Data frame. The parent block to add children to. |
... |
Data frame representing Notion content to add to parent block. May accept multiple blocks. |
To add children to blocks that are already posted, use patchAppendBlocks
.
Data frame object representing the Notion block object.
1 2 3 4 5 6 7 | toggleBlock <- createTextBlock("toggle","Outer toggle text")
stuffForToggle <- createTextBlock("paragraph", "inner toggle text")
moreStuffForToggle <- createTextBlock("quote", "Woof woof")
finalToggleBlock <- addChildren(toggleBlock, stuffForToggle, moreStuffForToggle)
## Pipe-friendly
finalToggleBlock <- createTextBlock("toggle","Outer toggle text") %>%
addChildren(createTextBlock("paragraph", "inner toggle text"), moreStuffForToggle)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.