New to KendoReactStart a free 30-day trial

Defines a mapping specification that can either be a property path string or a function.

Used to extract values from source objects in data mapping operations. When a string is provided, it represents a dot-notation path to a property (e.g., "user.name"). When a function is provided, it receives the input object and should return the desired value.

Possible values:

  • string
  • (input: TInput) => TValue
Example:
TS
// Using property path
const pathMapping: FromPathOrFn<User, string> = 'profile.name';

// Using function
const fnMapping: FromPathOrFn<User, string> = (user) => `${user.firstName} ${user.lastName}`;
Not finding the help you need?
Contact Support