{/* Do not edit this file. It is automatically generated by API Documenter. */}


## DataOptions

Overall configuration information of [DataProviderBase](/refs/Class/DataProviderBase)

**Signature:**

```typescript
export interface DataOptions
```

## Remarks

Used in [DataProviderBase.getOptions()](/refs/Class/DataProviderBase#getoptions){/* */}, [setOptions](/refs/Class/DataProviderBase#setoptions).

## Example


```js
let options = ds.getOptions();
options. undoable = true;
ds.setOptions(options);
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [amText](/refs/Interface/DataOptions#amtext) | string | String corresponding to the AM in the data |
| [baseYear](/refs/Interface/DataOptions#baseyear) | number | The base year when the data has two-digit years |
| [booleanFormat](/refs/Interface/DataOptions#booleanformat) | string | Format for parsing data into Booleans |
| [checkStates](/refs/Interface/DataOptions#checkstates) | boolean | Whether row state management is enabled |
| [datetimeFormat](/refs/Interface/DataOptions#datetimeformat) | string | Format for parsing text-format date data into datetime values ​​|
| [deletable](/refs/Interface/DataOptions#deletable) | boolean | Whether rows can be deleted |
| [deleteCreated](/refs/Interface/DataOptions#deletecreated) | boolean | Whether to actually delete added rows when deleting them |
| [insertable](/refs/Interface/DataOptions#insertable) | boolean | Whether rows can be inserted |
| [pmText](/refs/Interface/DataOptions#pmtext) | string | String corresponding to PM in the data |
| [restoreMode](/refs/Interface/DataOptions#restoremode) | string | Restore mode |
| [softDeleting](/refs/Interface/DataOptions#softdeleting) | boolean | Whether to only change the RowState without actually deleting rows when deleting them |
| [strictRestore](/refs/Interface/DataOptions#strictrestore) | boolean | Whether to recognize `undefined`{/* */}, `null`{/* */}, and the empty string as different values ​​when restoring |
| [subTypeEnabled](/refs/Interface/DataOptions#subtypeenabled) | boolean | Whether the subType property of a [DataField](/refs/Interface/DataField) is enabled |
| [undoable](/refs/Interface/DataOptions#undoable) | boolean | Whether undo/redo is enabled |
| [updatable](/refs/Interface/DataOptions#updatable) | boolean | Whether the row can be modified |
| [valuesCallback](/refs/Interface/DataOptions#valuescallback) | [ObjectToValuesCallback](/refs/realgrid#objecttovaluescallback) | A callback called for each row when JSON-formatted data is entered into the dataProvider |

## Properties Desc

### amText

A string corresponding to the morning in the data.

`Type` - string

<hr/>

### baseYear

The base year when the data has two-digit years.

`Type` - number

<hr/>

### booleanFormat

Format for parsing data into Booleans.

`Type` - string

<hr/>

### checkStates

Whether row state management is enabled.

`Type` - boolean

<hr/>

### datetimeFormat

Format for parsing text-formatted date data into datetime values.

`Type` - string

<hr/>

### deletable

Whether rows can be deleted.

`Type` - boolean

<hr/>

### deleteCreated

Whether added rows are actually deleted when deleted.

`Type` - boolean

<hr/>

### insertable

Rows can be inserted. Whether to

`Type` - boolean

<hr/>

### pmText

A string corresponding to PM in the data.

`Type` - string

<hr/>

### restoreMode

Restore mode

`Type` - string

<hr/>

### softDeleting

Whether to only change the RowState when deleting a row without actually deleting it.

`Type` - boolean

<hr/>

### strictRestore

Whether to recognize `undefined`{/* */}, `null`{/* */}, and empty strings as different values ​​when restoring.

`Type` - boolean

<hr/>

### subTypeEnabled

Whether to enable the subType property of [DataField](/refs/Interface/DataField).

`Type` - boolean

<hr/>

### undoable

Whether to use undo/redo.

`Type` - boolean

**Remarks:**

This applies only when the DataProvider is created with the Undoable state.

<hr/>

### Updatable

Whether rows can be updated.

`Type` - boolean

<hr/>

### ValuesCallback

A callback called for each row when JSON-format data is entered into the DataProvider.

`Type` - [ObjectToValuesCallback](/refs/realgrid#objecttovaluescallback)

<hr/>