Interface
Single expression. A single expression may contain multiple parts. For example,
// avg({field1})
{
name: 'exp1',
parts: [
  { type: FUNCTION, exp: 'AVERAGE' },
  { type: OPERATOR, exp: '(' },
  { type: FIELD, exp: '{field1}', dataSourceId: ds1, jimuFieldName: field1 },
  { type: OPERATOR, exp: ')' }
 ]
}Properties
| Property | Type | Notes | 
|---|---|---|
| name | string | Name of the expression. | 
| numberFormat | FormatNumberOptions | Format of the number results. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat for more details. | 
| parts | ExpressionPart[] | Expression parts. | 
numberFormat
optional
Interface PropertynumberFormat: FormatNumberOptionsFormat of the number results. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat for more details.
parts
Interface Propertyparts: ExpressionPart[]Expression parts.