Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace CollectionView

Describe a view of a collection.

Index

Type aliases

Type

Type: "table" | "board" | "calendar" | "list" | "gallery"

Types of database views Notion has.

Properties

alive

alive: boolean

format

format: Format

Equivalent to these settings in Notion:

  1. Visibility switches in the Properties button dropdown.
  2. Wrap Cells switch in the ยทยทยท button dropdown.
  3. Table column width.

id

id: UUID

name

name: string

The name of a view.

page_sort

page_sort: UUID[]

Use queryCollection() with an empty query to get pages in a collection. page_sort does not include all pages.

parent_id

parent_id: UUID

parent_table

parent_table: Table

Optional query

query: unknown

Legacy, deprecated query settings.

query2

query2: Query2

Settings for aggregation, filtering, and sorting.

type

type: Type

The type of view.

version

version: number

Generated using TypeDoc