New to KendoReactStart a free 30-day trial

setter

Function

Definition

Package:@progress/kendo-react-common

Syntax:

jsx
const values = {users:[{lastName: 'Doe'}]};
const firstUserFirstName = setter('user[0].firstName');

firstUserFirstName(values, 'John');

console.log(values)

// result: {users:[{firstName: 'John', lastName: 'Doe'}]}

Can be used for setting value to object using field path. For example users[index].name.

Parameters:fieldstring
In this article
Definition
Not finding the help you need?
Contact Support