API Reference
@univerjs
@univerjs/core
classes
Sheetviewmodel

@univerjs/core v0.4.2Docs


Class: SheetViewModel

Internal

Extends

Constructors

new SheetViewModel()

new SheetViewModel(getRawCell): SheetViewModel

Parameters

ParameterType
getRawCell(row, col) => Nullable<ICellData>

Returns

SheetViewModel

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/core/src/sheets/view-model.ts:60 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

submodules/univer/packages/core/src/sheets/view-model.ts:66 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getCell()

getCell(row, col): Nullable<ICellDataForSheetInterceptor>

Parameters

ParameterType
rownumber
colnumber

Returns

Nullable<ICellDataForSheetInterceptor>

Defined in

submodules/univer/packages/core/src/sheets/view-model.ts:73 (opens in a new tab)


getCellStyleOnly()

getCellStyleOnly(row, col): Nullable<ICellDataForSheetInterceptor>

Parameters

ParameterType
rownumber
colnumber

Returns

Nullable<ICellDataForSheetInterceptor>

Defined in

submodules/univer/packages/core/src/sheets/view-model.ts:89 (opens in a new tab)


getCellValueOnly()

getCellValueOnly(row, col): Nullable<ICellDataForSheetInterceptor>

Parameters

ParameterType
rownumber
colnumber

Returns

Nullable<ICellDataForSheetInterceptor>

Defined in

submodules/univer/packages/core/src/sheets/view-model.ts:81 (opens in a new tab)


getRowFiltered()

getRowFiltered(row): boolean

Parameters

ParameterType
rownumber

Returns

boolean

Defined in

submodules/univer/packages/core/src/sheets/view-model.ts:97 (opens in a new tab)


registerCellContentInterceptor()

registerCellContentInterceptor(interceptor): IDisposable

Parameters

ParameterType
interceptorICellContentInterceptor

Returns

IDisposable

Defined in

submodules/univer/packages/core/src/sheets/view-model.ts:101 (opens in a new tab)


registerRowFilteredInterceptor()

registerRowFilteredInterceptor(interceptor): IDisposable

Parameters

ParameterType
interceptorIRowFilteredInterceptor

Returns

IDisposable

Defined in

submodules/univer/packages/core/src/sheets/view-model.ts:110 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.