💡
This page was created for testing NorionRubyMapping. I thought this page was best suited to explain the append_child_block API, so I am presenting it as a use case.
💡
append_block_chidren can be used to Page and Blockobject. In this callout, there are some examples for appending blocks to block. examples for appending blocks to page are described under the callout.

Append block children for Block

Here is a paragraph block for test of append block children for a block. This block is obtained as org_block as follows. Moreover, a test sub_block object is generated by Block.new.paragraph method.
From here, the code to create a block and its products are shown side by side. The each mention link of Block after “→” is the link to the method reference.



  • Bullet list item
    • with children

4.
🧱
CalloutBlock
(emoji)

Emoji callout
with children

5.
🧱
CalloutBlock
(file_url)

Url callout
Url callout
with children


Emoji callout
Url callout
Url callout


NotionRubyMapping開発記録(21)


11.


12.

Heading 1


13.

Heading 2


14.

Heading 3


15.

Notion logo
Notion logo

16.


17.


18.

  1. Numbered list item
    1. with children

19.

A sample paragraph
with children

20.

21.

A sample quote
with children

22.


23.

Original synced block

24. table →

Services
Account
Twitter
hkob profile
GitHub

24. table_of_contents block →


25. template block →


26. to_do block →

A sample To-Do
with children

27. toggle block →

A sample toggle
with children

28.

Toggle Heading 1

  • inside Toggle Heading 1

29.

Toggle Heading 2

  • inside Toggle Heading 2

30. toggle_heading_3 block →

Toggle Heading 3

  • inside Toggle Heading 3

31. video block →


Here is a paragraph block for test of append block children for a block. This block is obtained as org_block as follows. Moreover, a test sub_block object is generated by Block.new.paragraph method.

Append block children for Page

Here is a page for test of append block children for a page. This page is obtained as org_page as follows. Moreover, a test sub_block object is generated by Block.new.paragraph method
From here, the code to create and its products are shown side by side. The each mention link of Block after “→” is the link to the method reference.



  • Bullet list item
    • with children

4.
🧱
CalloutBlock
(emoji)

Emoji callout
with children

5.
🧱
CalloutBlock
(file_url)

Url callout
Url callout
with children


Emoji callout
Url callout
Url callout



NotionRubyMapping開発記録(21)


11.


12.

Heading 1


13.

Heading 2



14.

Heading 3


15.

Notion logo
Notion logo

16.


17.


18.

  1. Numbered list item
    1. with children

19.

A sample paragraph
with children

20.


21.

A sample quote
with children

22.


23.

Original synced block
Services
Account
Twitter
hkob profile
GitHub

24. table_of_contents block →


25. template block →


26. to_do block →

A sample To-Do
with children

27. toggle block →

A sample toggle
with children

28.

Toggle Heading 1

  • inside Toggle Heading 1

29.

30. toggle_heading_3 block →

Toggle Heading 3

  • inside Toggle Heading 3

31. video block →

Loading...