@univerjs-pro/engine-pivot v0.5.0-beta.1 • Docs


Class: PivotViewItem

Extended by

Constructors

new PivotViewItem()

new PivotViewItem(): PivotViewItem

Returns

PivotViewItem

Properties

PropertyTypeDefault valueDescriptionDefined in
colCountnumber0- how many cols in the viewlayout/pivot-view.ts:100
dataIPivotViewItemData{}the data of the view, the key is the row index, the value is the column datalayout/pivot-view.ts:104
infoIPivotViewInfo[][]the info of the view, the index is the index of the view item, the value is the info of the view itemlayout/pivot-view.ts:108
lastColnumber-1-layout/pivot-view.ts:110
lastRownumber-1-layout/pivot-view.ts:111
rowCountnumber0- how many rows in the viewlayout/pivot-view.ts:96

Methods

buildPathMap()

buildPathMap(considerValue): Record<string, number>

Parameters

ParameterType
considerValueboolean

Returns

Record<string, number>

Defined in

layout/pivot-view.ts:152


fromJSON()

fromJSON(json): void

Parameters

ParameterType
jsonIPivotViewItemJSON

Returns

void

Defined in

layout/pivot-view.ts:205


getCell()

protected getCell(row, col): IPivotViewCellData

Parameters

ParameterType
rownumber
colnumber

Returns

IPivotViewCellData

Defined in

layout/pivot-view.ts:138


getColCount()

getColCount(): number

Returns

number

Defined in

layout/pivot-view.ts:175


getLastCol()

getLastCol(): number

Returns

number

Defined in

layout/pivot-view.ts:113


getLastRow()

getLastRow(): number

Returns

number

Defined in

layout/pivot-view.ts:117


getRowCount()

getRowCount(): number

Returns

number

Defined in

layout/pivot-view.ts:171


getStyle()

getStyle(row, col): undefined | PivotCellStyleTypeEnum

Parameters

ParameterType
rownumber
colnumber

Returns

undefined | PivotCellStyleTypeEnum

Defined in

layout/pivot-view.ts:183


getValue()

getValue(row, col): IPivotViewValueType

Parameters

ParameterType
rownumber
colnumber

Returns

IPivotViewValueType

Defined in

layout/pivot-view.ts:179


setBlank()

setBlank(row, col): void

Parameters

ParameterType
rownumber
colnumber

Returns

void

Defined in

layout/pivot-view.ts:133


setColCount()

setColCount(colCount): void

Parameters

ParameterType
colCountnumber

Returns

void

Defined in

layout/pivot-view.ts:167


setInfo()

setInfo(index, info): void

Parameters

ParameterType
indexnumber
infoIPivotViewInfo

Returns

void

Defined in

layout/pivot-view.ts:148


setRowCount()

setRowCount(rowCount): void

Parameters

ParameterType
rowCountnumber

Returns

void

Defined in

layout/pivot-view.ts:163


setStyle()

setStyle(
   row, 
   col, 
   styleType): void

Parameters

ParameterType
rownumber
colnumber
styleTypePivotCellStyleTypeEnum

Returns

void

Defined in

layout/pivot-view.ts:128


setValue()

setValue(
   row, 
   col, 
   value): void

Parameters

ParameterType
rownumber
colnumber
valueIPivotViewValueType

Returns

void

Defined in

layout/pivot-view.ts:121


toJSON()

toJSON(): IPivotViewItemJSON

Returns

IPivotViewItemJSON

Defined in

layout/pivot-view.ts:187