errorHandler
This function accepts a JavaScript Error object as the parameter.
- <script>
- import LocalStore from 'devextreme/data/local_store';
- const store = new LocalStore({
- // ...
- errorHandler: (error) => {
- console.log(error.message);
- }
- });
- export default {
- // ...
- data() {
- return {
- store
- }
- }
- }
- </script>
flushInterval
Specifies a delay in milliseconds between when data changes and the moment these changes are saved in the local storage. Applies only if immediate is false.
key
Specifies the key property (or properties) that provide(s) key values to access data items. Each key value must be unique.
In the following example, the ProductID
and ProductCode
properties are specified as key properties:
- <script>
- import LocalStore from 'devextreme/data/local_store';
- const store = new LocalStore({
- // ...
- key: ['ProductID', 'ProductCode']
- });
- export default {
- // ...
- data() {
- return {
- store
- }
- }
- }
- </script>
name
Specifies the name under which data should be saved in the local storage. The dx-data-localStore-
prefix will be added to the name.
If you have technical questions, please create a support ticket in the DevExpress Support Center.