DataTypeProvider Plugin Reference

A plugin that allows you to customize formatting options and editors depending on the data type.

Import

Use the following statement to import the plugin:

import { DataTypeProvider } from '@devexpress/dx-react-grid';

User Reference

Dependencies

none

Properties

Name Type Default Description
for Array<string>   The names of columns associated with the specified formatter and editor.
formatterComponent? ComponentType<DataTypeProvider.ValueFormatterProps>   A component that renders the formatted value.
editorComponent? ComponentType<DataTypeProvider.ValueEditorProps>   A component that renders a custom editor.
availableFilterOperations? Array<FilterOperation>   The names of filter operations that are available for the associated columns.

Interfaces

DataTypeProvider.ValueFormatterProps

Describes properties passed to a component that renders the formatted value.

Field Type Description
column Column A column object.
row? any A row.
value any The value to be formatted.

DataTypeProvider.ValueEditorProps

Describes properties passed to a component that renders the value editor.

Field Type Description
column Column A column object.
row? any A row.
value any Specifies the editor value.
onValueChange (newValue: any) => void Handles value changes.
disabled boolean true if users should not be able to edit the value, false otherwise.

Plugin Developer Reference

Imports

none

Exports

Name Plugin Type Description
getAvailableFilterOperations Getter (columnName: string) => Array<string>? A function that returns the names of filter operations available for a particular column.
valueFormatter Template DataTypeProvider.ValueFormatterProps A template that renders the formatted value.
valueEditor Template DataTypeProvider.ValueEditorProps A template that renders the editor.