Skip to content

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

BaseSelection.constructor

Properties

blockId

readonly blockId: string

Defined in: packages/framework/store/dist/extension/selection/base.d.ts:8

Inherited from

BaseSelection.blockId


data

readonly data: { 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

static group: string = 'note'

Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:66

Overrides

BaseSelection.group


type

static type: string = 'table'

Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:68

Overrides

BaseSelection.type

Accessors

group

Get Signature

get group(): string

Defined in: packages/framework/store/dist/extension/selection/base.d.ts:9

Returns

string

Inherited from

BaseSelection.group


type

Get Signature

get type(): string

Defined in: packages/framework/store/dist/extension/selection/base.d.ts:10

Returns

string

Inherited from

BaseSelection.type

Methods

equals()

equals(other): boolean

Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:94

Parameters

other

BaseSelection

Returns

boolean

Overrides

BaseSelection.equals


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

BaseSelection.is


toJSON()

toJSON(): Record<string, unknown>

Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:101

Returns

Record<string, unknown>

Overrides

BaseSelection.toJSON


fromJSON()

static fromJSON(json): TableSelection

Defined in: packages/affine/blocks/block-table/src/selection-schema.ts:86

Parameters

json

Record<string, unknown>

Returns

TableSelection

Overrides

BaseSelection.fromJSON