@univerjs-pro/engine-pivot v0.5.4
Class: PageViewItem
Defined in: layout/pivot-view.ts:220
Extends
Constructors
new PageViewItem()
new PageViewItem(): PageViewItem
Returns
Inherited from
Properties
Property | Type | Default value | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|---|
colCount | number | 0 | - how many cols in the view | - | PivotViewItem .colCount | layout/pivot-view.ts:100 |
data | IPivotViewItemData | {} | the data of the view, the key is the row index, the value is the column data | - | PivotViewItem .data | layout/pivot-view.ts:104 |
info | IPivotViewInfo [] | [] | the info of the view, the index is the index of the view item, the value is the info of the view item | - | PivotViewItem .info | layout/pivot-view.ts:108 |
lastCol | number | -1 | the last col index of the page view | PivotViewItem .lastCol | - | layout/pivot-view.ts:229 |
lastRow | number | -1 | the last row index of the page view | PivotViewItem .lastRow | - | layout/pivot-view.ts:233 |
ranges | IPageViewItemRange [] | [] | the range group of the page view, all range is base on the left top of the page view | - | - | layout/pivot-view.ts:224 |
rowCount | number | 0 | - how many rows in the view | - | PivotViewItem .rowCount | layout/pivot-view.ts:96 |
Methods
addRange()
addRange(range): void
Defined in: layout/pivot-view.ts:240
Parameters
Parameter | Type |
---|---|
range | IPageViewItemRange |
Returns
void
buildPathMap()
buildPathMap(considerValue): Record<string, number>
Defined in: layout/pivot-view.ts:152
Parameters
Parameter | Type |
---|---|
considerValue | boolean |
Returns
Record
<string
, number
>
Inherited from
fromJSON()
fromJSON(json): void
Defined in: layout/pivot-view.ts:278
Parameters
Parameter | Type |
---|---|
json | IPageViewItemJSON |
Returns
void
Overrides
getCell()
protected getCell(row, col): IPivotViewCellData
Defined in: layout/pivot-view.ts:138
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
Returns
Inherited from
getColCount()
getColCount(): number
Defined in: layout/pivot-view.ts:175
Returns
number
Inherited from
getLastCol()
getLastCol(): number
Defined in: layout/pivot-view.ts:256
Returns
number
Overrides
getLastRow()
getLastRow(): number
Defined in: layout/pivot-view.ts:260
Returns
number
Overrides
getRanges()
getRanges(): IPageViewItemRange[]
Defined in: layout/pivot-view.ts:244
Returns
getRowCount()
getRowCount(): number
Defined in: layout/pivot-view.ts:171
Returns
number
Inherited from
getStyle()
getStyle(row, col):
| undefined
| PivotCellStyleTypeEnum
Defined in: layout/pivot-view.ts:183
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
Returns
| undefined
| PivotCellStyleTypeEnum
Inherited from
getValue()
getValue(row, col): IPivotViewValueType
Defined in: layout/pivot-view.ts:179
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
Returns
Inherited from
setBlank()
setBlank(row, col): void
Defined in: layout/pivot-view.ts:133
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
Returns
void
Inherited from
setColCount()
setColCount(colCount): void
Defined in: layout/pivot-view.ts:167
Parameters
Parameter | Type |
---|---|
colCount | number |
Returns
void
Inherited from
setInfo()
setInfo(index, info): void
Defined in: layout/pivot-view.ts:148
Parameters
Parameter | Type |
---|---|
index | number |
info | IPivotViewInfo |
Returns
void
Inherited from
setLastCol()
setLastCol(col): void
Defined in: layout/pivot-view.ts:248
Parameters
Parameter | Type |
---|---|
col | number |
Returns
void
setLastRow()
setLastRow(row): void
Defined in: layout/pivot-view.ts:252
Parameters
Parameter | Type |
---|---|
row | number |
Returns
void
setPageIndex()
setPageIndex(
row,
col,
index): void
Defined in: layout/pivot-view.ts:235
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
index | number |
Returns
void
setRowCount()
setRowCount(rowCount): void
Defined in: layout/pivot-view.ts:163
Parameters
Parameter | Type |
---|---|
rowCount | number |
Returns
void
Inherited from
setStyle()
setStyle(
row,
col,
styleType): void
Defined in: layout/pivot-view.ts:128
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
styleType | PivotCellStyleTypeEnum |
Returns
void
Inherited from
setValue()
setValue(
row,
col,
value): void
Defined in: layout/pivot-view.ts:121
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
value | IPivotViewValueType |
Returns
void
Inherited from
toJSON()
toJSON(): IPageViewItemJSON
Defined in: layout/pivot-view.ts:264