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


Function: getAutoDisplayName()

function getAutoDisplayName(baseName, subtotalType): string
  • Get the auto display name of the value field.

Parameters

ParameterTypeDescription
baseNamestringthe name without prefix text
subtotalTypePivotSubtotalTypeEnumthe type of subtotal to be displayed for this value field.

Returns

string

the auto display name of the value field.

Description

  • which may use prefix text like excel
  • the prefix text is create by subtotal type

Defined in

util.ts:49