@univerjscoreclassesSheetviewmodel

@univerjs/core v0.5.0-beta.1Docs


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

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/view-model.ts:60

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/view-model.ts:66


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100


getCell()

getCell(row, col): Nullable<ICellDataForSheetInterceptor>

Parameters

ParameterType
rownumber
colnumber

Returns

Nullable<ICellDataForSheetInterceptor>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/view-model.ts:73


getCellStyleOnly()

getCellStyleOnly(row, col): Nullable<ICellDataForSheetInterceptor>

Parameters

ParameterType
rownumber
colnumber

Returns

Nullable<ICellDataForSheetInterceptor>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/view-model.ts:89


getCellValueOnly()

getCellValueOnly(row, col): Nullable<ICellDataForSheetInterceptor>

Parameters

ParameterType
rownumber
colnumber

Returns

Nullable<ICellDataForSheetInterceptor>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/view-model.ts:81


getRowFiltered()

getRowFiltered(row): boolean

Parameters

ParameterType
rownumber

Returns

boolean

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/view-model.ts:97


registerCellContentInterceptor()

registerCellContentInterceptor(interceptor): IDisposable

Parameters

ParameterType
interceptorICellContentInterceptor

Returns

IDisposable

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/view-model.ts:101


registerRowFilteredInterceptor()

registerRowFilteredInterceptor(interceptor): IDisposable

Parameters

ParameterType
interceptorIRowFilteredInterceptor

Returns

IDisposable

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/view-model.ts:110