Notion-Helper: Power Tools for the Notion API
richText(name, value) checkbox(name, value) date(name, start, end) email(name, value) files(name, fileArray) multiSelect(name, valuesArray) number(name, value) people(name, personArray) phoneNumber(name, value) relation(name, pageArray) select(name, value) status(name, value) url(name, value) startParent(blockType, options) endParent() paragraph(options) heading1(options) heading2(options) heading3(options) bulletedListItem(options) bullet(options) - alias function numberedListItem(options) num(options) - alias function toDo(options) toggle(options) code(options) quote(options) callout(options) divider() image(options) video(options) file(options) pdf(options) bookmark(options) embed(options) tableOfContents(options) table(options) tableRow(options) loop(blockTypeOrCallback, options) parentPage() pageId() propertyId() blockId() cover() icon() reset() - resets the builder.
const listItems = album.tracks.map((item) => ({ numbered_list_item: { rich_text: [ { text: { content: item, }, }, ], }, })); function getISODate(dateString) { return new Date(dateString).toISOString(); } const page = { parent: { data_source_id: data_source_id, }, properties: { Name: { title: [ { text: { content: album.name, }, }, ], }, Artist: { rich_text: [ { text: { content: album.artist, }, }, ], }, Released: { date: { start: getISODate(album.release_date), }, }, }, children: [ { heading_1: { rich_text: [ { text: { content: "Tracklist", }, }, ], }, }, ...listItems, { heading_1: {…
saved by
related reading
- Notionnanransohoff.com
- Notionalisawuffles.notion.site
- Notionalisawuffles.notion.site
- Notiondepue.notion.site
- Notionblog.alexisfox.dev
- Notionnanransohoff.com
- Overview - Notion Docsdevelopers.notion.com
- Notionnotion.so
- Notionbrowserinc.notion.site
- Notiondialectic.fm
- Build with Notion’s Developer Platformnotion.com
- Notionnotion.so