BlockSuite API Documentation / @blocksuite/blocks / ListBlockSchema
Variable: ListBlockSchema
const
ListBlockSchema:object
Type declaration
model
model:
object
&object
Type declaration
flavour
flavour:
"affine:list"
props
props:
PropsGetter
<object
>
Type declaration
checked
checked:
boolean
=false
collapsed
collapsed:
ListCollapsed
text
text:
Text
type
type:
ListType
Type declaration
parent
parent:
string
[]
role
role:
"content"
='content'
version
version:
number
=1
onUpgrade()?
optional
onUpgrade: (data
,previousVersion
,latestVersion
) =>void
Parameters
• data
• data.checked: boolean
= false
• data.collapsed: ListCollapsed
= undefined
• data.text: Text
= undefined
• data.type: ListType
= undefined
• previousVersion: number
• latestVersion: number
Returns
void
transformer()?
optional
transformer: () =>BaseBlockTransformer
<object
>
Returns
BaseBlockTransformer
<object
>
checked
checked:
boolean
=false
collapsed
collapsed:
ListCollapsed
text
text:
Text
type
type:
ListType
version
version:
number
Source
packages/blocks/src/list-block/list-model.ts:12