DataOptions
Overall configuration information of DataProviderBase
Signature:
export interface DataOptionsRemarks
Used in DataProviderBase.getOptions(), setOptions.
Example
let options = ds.getOptions();
options. undoable = true;
ds.setOptions(options);Properties
| Property | Type | Description |
|---|---|---|
| amText | string | String corresponding to the AM in the data |
| baseYear | number | The base year when the data has two-digit years |
| booleanFormat | string | Format for parsing data into Booleans |
| checkStates | boolean | Whether row state management is enabled |
| datetimeFormat | string | Format for parsing text-format date data into datetime values |
| deletable | boolean | Whether rows can be deleted |
| deleteCreated | boolean | Whether to actually delete added rows when deleting them |
| insertable | boolean | Whether rows can be inserted |
| pmText | string | String corresponding to PM in the data |
| restoreMode | string | Restore mode |
| softDeleting | boolean | Whether to only change the RowState without actually deleting rows when deleting them |
| strictRestore | boolean | Whether to recognize undefined, null, and the empty string as different values when restoring |
| subTypeEnabled | boolean | Whether the subType property of a DataField is enabled |
| undoable | boolean | Whether undo/redo is enabled |
| updatable | boolean | Whether the row can be modified |
| valuesCallback | 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
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