API REFERENCE

valueSetter

Custom logic for writing a converted value into the source row. Follow the return contract indicating whether a change occurred.

What does this API do?

Custom logic for writing a converted value into the source row. Follow the return contract indicating whether a change occurred.

Exact input and result types

typescript
valueSetter?: GridCallback<
    [ValueSetterParams<TData, TValue, TContext>],
    boolean | void
  >
ItemValue
RequiredOptional
Input typeGridCallback< [ValueSetterParams<TData, TValue, TContext>], boolean | void >

Usage flow

Set this on an individual column object in columnDefs. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Read related types

Feature explanations and examples