@univerjs-pro/engine-pivot v0.5.0-beta.1 • Docs
Class: LabelViewItem
Extends
Constructors
new LabelViewItem()
new LabelViewItem(): LabelViewItem
Returns
Inherited from
Properties
Property | Type | Default value | Description | 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 |
headerMap | ILabelViewHeaderMapItem [] | [] | 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 |
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 | - | PivotViewItem .lastCol | layout/pivot-view.ts:110 |
lastRow | number | -1 | - | PivotViewItem .lastRow | layout/pivot-view.ts:111 |
rowCount | number | 0 | - how many rows in the view | PivotViewItem .rowCount | layout/pivot-view.ts:96 |
Methods
addHeaderMapItem()
addHeaderMapItem(index, item): void
Parameters
Parameter | Type |
---|---|
index | number |
item | ILabelViewHeaderMapItem |
Returns
void
Defined in
layout/pivot-view.ts:298
buildPathMap()
buildPathMap(considerValue): Record<string, number>
Parameters
Parameter | Type |
---|---|
considerValue | boolean |
Returns
Record
<string
, number
>
Inherited from
Defined in
layout/pivot-view.ts:152
fromJSON()
fromJSON(json): void
Parameters
Parameter | Type |
---|---|
json | ILabelViewItemJSON |
Returns
void
Overrides
Defined in
layout/pivot-view.ts:318
getCell()
protected getCell(row, col): IPivotViewCellData
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
Returns
Inherited from
Defined in
layout/pivot-view.ts:138
getColCount()
getColCount(): number
Returns
number
Inherited from
Defined in
layout/pivot-view.ts:175
getHeaderMapItem()
getHeaderMapItem(index): ILabelViewHeaderMapItem
Parameters
Parameter | Type |
---|---|
index | number |
Returns
Defined in
layout/pivot-view.ts:302
getLastCol()
getLastCol(): number
Returns
number
Inherited from
Defined in
layout/pivot-view.ts:113
getLastRow()
getLastRow(): number
Returns
number
Inherited from
Defined in
layout/pivot-view.ts:117
getRowCount()
getRowCount(): number
Returns
number
Inherited from
Defined in
layout/pivot-view.ts:171
getStyle()
getStyle(row, col): undefined | PivotCellStyleTypeEnum
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
Returns
undefined
| PivotCellStyleTypeEnum
Inherited from
Defined in
layout/pivot-view.ts:183
getValue()
getValue(row, col): IPivotViewValueType
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
Returns
Inherited from
Defined in
layout/pivot-view.ts:179
setBlank()
setBlank(row, col): void
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
Returns
void
Inherited from
Defined in
layout/pivot-view.ts:133
setColCount()
setColCount(colCount): void
Parameters
Parameter | Type |
---|---|
colCount | number |
Returns
void
Inherited from
Defined in
layout/pivot-view.ts:167
setInfo()
setInfo(index, info): void
Parameters
Parameter | Type |
---|---|
index | number |
info | IPivotViewInfo |
Returns
void
Inherited from
Defined in
layout/pivot-view.ts:148
setRowCount()
setRowCount(rowCount): void
Parameters
Parameter | Type |
---|---|
rowCount | number |
Returns
void
Inherited from
Defined in
layout/pivot-view.ts:163
setStyle()
setStyle(
row,
col,
styleType): void
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
styleType | PivotCellStyleTypeEnum |
Returns
void
Inherited from
Defined in
layout/pivot-view.ts:128
setValue()
setValue(
row,
col,
value): void
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
value | IPivotViewValueType |
Returns
void
Inherited from
Defined in
layout/pivot-view.ts:121
toJSON()
toJSON(): ILabelViewItemJSON
Returns
Overrides
Defined in
layout/pivot-view.ts:306