BlockSuite API Documentation / @blocksuite/affine-block-table / TableSelection
Class: TableSelection
Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:65
Extends
Constructors
new TableSelection()
new TableSelection(
__namedParameters):TableSelection
Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:72
Parameters
__namedParameters
blockId
string
data
{ columnEndIndex: number; columnStartIndex: number; rowEndIndex: number; rowStartIndex: number; type: "area"; } | { rowId: string; type: "row"; } | { columnId: string; type: "column"; }
Returns
TableSelection
Overrides
Properties
blockId
readonlyblockId:string
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:8
Inherited from
data
readonlydata: {columnEndIndex:number;columnStartIndex:number;rowEndIndex:number;rowStartIndex:number;type:"area"; } | {rowId:string;type:"row"; } | {columnId:string;type:"column"; }
Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:70
group
staticgroup:string='note'
Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:66
Overrides
type
statictype:string='table'
Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:68
Overrides
Accessors
group
Get Signature
get group():
string
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:9
Returns
string
Inherited from
type
Get Signature
get type():
string
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:10
Returns
string
Inherited from
Methods
equals()
equals(
other):boolean
Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:94
Parameters
other
Returns
boolean
Overrides
is()
is<
T>(type):this is T extends SelectionConstructor<U> ? U : never
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:14
Type Parameters
T
T extends SelectionConstructor<BaseSelection>
Parameters
type
T
Returns
this is T extends SelectionConstructor<U> ? U : never
Inherited from
toJSON()
toJSON():
Record<string,unknown>
Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:101
Returns
Record<string, unknown>
Overrides
fromJSON()
staticfromJSON(json):TableSelection
Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:86
Parameters
json
Record<string, unknown>
Returns
TableSelection