RealGrid2 API
Interface
DataOptions

DataOptions

Overall configuration information of DataProviderBase

Signature:

export interface DataOptions

Remarks

Used in DataProviderBase.getOptions(), setOptions.

Example

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

Properties

PropertyTypeDescription
amTextstringString corresponding to the AM in the data
baseYearnumberThe base year when the data has two-digit years
booleanFormatstringFormat for parsing data into Booleans
checkStatesbooleanWhether row state management is enabled
datetimeFormatstringFormat for parsing text-format date data into datetime values ​​
deletablebooleanWhether rows can be deleted
deleteCreatedbooleanWhether to actually delete added rows when deleting them
insertablebooleanWhether rows can be inserted
pmTextstringString corresponding to PM in the data
restoreModestringRestore mode
softDeletingbooleanWhether to only change the RowState without actually deleting rows when deleting them
strictRestorebooleanWhether to recognize undefined, null, and the empty string as different values ​​when restoring
subTypeEnabledbooleanWhether the subType property of a DataField is enabled
undoablebooleanWhether undo/redo is enabled
updatablebooleanWhether the row can be modified
valuesCallbackObjectToValuesCallbackA 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


baseYear

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

Type - number


booleanFormat

Format for parsing data into Booleans.

Type - string


checkStates

Whether row state management is enabled.

Type - boolean


datetimeFormat

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

Type - string


deletable

Whether rows can be deleted.

Type - boolean


deleteCreated

Whether added rows are actually deleted when deleted.

Type - boolean


insertable

Rows can be inserted. Whether to

Type - boolean


pmText

A string corresponding to PM in the data.

Type - string


restoreMode

Restore mode

Type - string


softDeleting

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

Type - boolean


strictRestore

Whether to recognize undefined, null, and empty strings as different values ​​when restoring.

Type - boolean


subTypeEnabled

Whether to enable the subType property of DataField.

Type - boolean


undoable

Whether to use undo/redo.

Type - boolean

Remarks:

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


Updatable

Whether rows can be updated.

Type - boolean


ValuesCallback

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

Type - ObjectToValuesCallback