React TreeList - Editing

Configures editing.

import { Editing } from "devextreme/ui/tree_list"

allowAdding

Specifies whether a user can add new rows. It is called for each data row when defined as a function.

Type:

Boolean

|

Function

Function parameters:
options:

Object

Information about the current row.

Object structure:
Name Type Description
component

TreeList

The UI component's instance.

row

TreeList Row

The row's properties.

Return Value:

Boolean

true if the row can be added; otherwise false.

Default Value: false

allowDeleting

Specifies whether a user can delete rows. It is called for each data row when defined as a function.

Type:

Boolean

|

Function

Function parameters:
options:

Object

Information about the current row.

Object structure:
Name Type Description
component

TreeList

The UI component's instance.

row

TreeList Row

The row's properties.

Return Value:

Boolean

true if the row can be deleted; otherwise false.

Default Value: false

allowUpdating

Specifies whether a user can update rows. It is called for each data row when defined as a function

Type:

Boolean

|

Function

Function parameters:
options:

Object

Information about the current row.

Object structure:
Name Type Description
component

TreeList

The UI component's instance.

row

TreeList Row

The row's properties.

Return Value:

Boolean

true if the row can be updated; otherwise false.

Default Value: false

texts

Contains properties that specify texts for editing-related UI elements.

Type:

Object