@univerjs-pro/engine-pivot v0.5.4


Class: LabelViewItem

Defined in: layout/pivot-view.ts:290

Extends

Constructors

new LabelViewItem()

new LabelViewItem(): LabelViewItem

Returns

LabelViewItem

Inherited from

PivotViewItem.constructor

Properties

PropertyTypeDefault valueDescriptionInherited fromDefined in
colCountnumber0- how many cols in the viewPivotViewItem.colCountlayout/pivot-view.ts:100
dataIPivotViewItemData{}the data of the view, the key is the row index, the value is the column dataPivotViewItem.datalayout/pivot-view.ts:104
headerMapILabelViewHeaderMapItem[][]this property is used to store the header map of the label view - in the row view, the header map saved the every column in row view, the key is the column index, the value is the header map item - in the col view, the header map saved the every row in col view, the key is the row index, the value is the header map item-layout/pivot-view.ts:296
infoIPivotViewInfo[][]the info of the view, the index is the index of the view item, the value is the info of the view itemPivotViewItem.infolayout/pivot-view.ts:108
lastColnumber-1-PivotViewItem.lastCollayout/pivot-view.ts:110
lastRownumber-1-PivotViewItem.lastRowlayout/pivot-view.ts:111
rowCountnumber0- how many rows in the viewPivotViewItem.rowCountlayout/pivot-view.ts:96

Methods

addHeaderMapItem()

addHeaderMapItem(index, item): void

Defined in: layout/pivot-view.ts:298

Parameters

ParameterType
indexnumber
itemILabelViewHeaderMapItem

Returns

void


buildPathMap()

buildPathMap(considerValue): Record<string, number>

Defined in: layout/pivot-view.ts:152

Parameters

ParameterType
considerValueboolean

Returns

Record<string, number>

Inherited from

PivotViewItem.buildPathMap


fromJSON()

fromJSON(json): void

Defined in: layout/pivot-view.ts:318

Parameters

ParameterType
jsonILabelViewItemJSON

Returns

void

Overrides

PivotViewItem.fromJSON


getCell()

protected getCell(row, col): IPivotViewCellData

Defined in: layout/pivot-view.ts:138

Parameters

ParameterType
rownumber
colnumber

Returns

IPivotViewCellData

Inherited from

PivotViewItem.getCell


getColCount()

getColCount(): number

Defined in: layout/pivot-view.ts:175

Returns

number

Inherited from

PivotViewItem.getColCount


getHeaderMapItem()

getHeaderMapItem(index): ILabelViewHeaderMapItem

Defined in: layout/pivot-view.ts:302

Parameters

ParameterType
indexnumber

Returns

ILabelViewHeaderMapItem


getLastCol()

getLastCol(): number

Defined in: layout/pivot-view.ts:113

Returns

number

Inherited from

PivotViewItem.getLastCol


getLastRow()

getLastRow(): number

Defined in: layout/pivot-view.ts:117

Returns

number

Inherited from

PivotViewItem.getLastRow


getRowCount()

getRowCount(): number

Defined in: layout/pivot-view.ts:171

Returns

number

Inherited from

PivotViewItem.getRowCount


getStyle()

getStyle(row, col): 
  | undefined
  | PivotCellStyleTypeEnum

Defined in: layout/pivot-view.ts:183

Parameters

ParameterType
rownumber
colnumber

Returns

| undefined | PivotCellStyleTypeEnum

Inherited from

PivotViewItem.getStyle


getValue()

getValue(row, col): IPivotViewValueType

Defined in: layout/pivot-view.ts:179

Parameters

ParameterType
rownumber
colnumber

Returns

IPivotViewValueType

Inherited from

PivotViewItem.getValue


setBlank()

setBlank(row, col): void

Defined in: layout/pivot-view.ts:133

Parameters

ParameterType
rownumber
colnumber

Returns

void

Inherited from

PivotViewItem.setBlank


setColCount()

setColCount(colCount): void

Defined in: layout/pivot-view.ts:167

Parameters

ParameterType
colCountnumber

Returns

void

Inherited from

PivotViewItem.setColCount


setInfo()

setInfo(index, info): void

Defined in: layout/pivot-view.ts:148

Parameters

ParameterType
indexnumber
infoIPivotViewInfo

Returns

void

Inherited from

PivotViewItem.setInfo


setRowCount()

setRowCount(rowCount): void

Defined in: layout/pivot-view.ts:163

Parameters

ParameterType
rowCountnumber

Returns

void

Inherited from

PivotViewItem.setRowCount


setStyle()

setStyle(
   row, 
   col, 
   styleType): void

Defined in: layout/pivot-view.ts:128

Parameters

ParameterType
rownumber
colnumber
styleTypePivotCellStyleTypeEnum

Returns

void

Inherited from

PivotViewItem.setStyle


setValue()

setValue(
   row, 
   col, 
   value): void

Defined in: layout/pivot-view.ts:121

Parameters

ParameterType
rownumber
colnumber
valueIPivotViewValueType

Returns

void

Inherited from

PivotViewItem.setValue


toJSON()

toJSON(): ILabelViewItemJSON

Defined in: layout/pivot-view.ts:306

Returns

ILabelViewItemJSON

Overrides

PivotViewItem.toJSON