@univerjs/core v0.4.2 • Docs
Class: SheetViewModel
Internal
Extends
Constructors
new SheetViewModel()
new SheetViewModel(getRawCell): SheetViewModel
Parameters
Parameter | Type |
---|---|
getRawCell | (row , col ) => Nullable <ICellData > |
Returns
Overrides
Defined in
submodules/univer/packages/core/src/sheets/view-model.ts:60 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Overrides
Defined in
submodules/univer/packages/core/src/sheets/view-model.ts:66 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
getCell()
getCell(row, col): Nullable<ICellDataForSheetInterceptor>
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
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
Parameter | Type |
---|---|
row | number |
col | number |
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
Parameter | Type |
---|---|
row | number |
col | number |
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
Parameter | Type |
---|---|
row | number |
Returns
boolean
Defined in
submodules/univer/packages/core/src/sheets/view-model.ts:97 (opens in a new tab)
registerCellContentInterceptor()
registerCellContentInterceptor(interceptor): IDisposable
Parameters
Parameter | Type |
---|---|
interceptor | ICellContentInterceptor |
Returns
Defined in
submodules/univer/packages/core/src/sheets/view-model.ts:101 (opens in a new tab)
registerRowFilteredInterceptor()
registerRowFilteredInterceptor(interceptor): IDisposable
Parameters
Parameter | Type |
---|---|
interceptor | IRowFilteredInterceptor |
Returns
Defined in
submodules/univer/packages/core/src/sheets/view-model.ts:110 (opens in a new tab)