Documentation

@kanunilabs/pivotgrid-enterprise


@kanunilabs/pivotgrid-enterprise / applyPivotAiState

Function: applyPivotAiState()

applyPivotAiState<TRow>(controller, answer, options?): PivotAiApplyResult

Apply a model's answer, object or JSON text. What is valid is applied in one field commit (plus one layout update when totals changed); what is not is listed in dropped. Never throws on a bad answer. Pass the options the schema was built with.

Type Parameters

TRow

TRow

Parameters

controller

PivotController<TRow>

answer

unknown

options?

PivotAiOptions

Returns

PivotAiApplyResult