Local Storage Loader
info
Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.
Description
The LocalStorageLoader component is responsible for loading data from local storage and providing it to nested components. It allows for the retrieval and use of previously stored data within the application.
Example
{
"name": "LocalStorageLoader",
"type": "EntryData",
"props": {
"storageKey": "steel_mill_1_dpps",
"nestedComponents": [
{
"name": "JsonForm",
"type": "EntryData",
"props": {
"schema": { /* ... */ },
"constructData": { /* ... */ }
}
}
]
}
}
Definitions
Property | Required | Description | Type |
---|---|---|---|
name | Yes | The name of the component(should be "LocalStorageLoader") | String |
type | Yes | The type of the component (should be "EntryData") | ComponentType |
props | Yes | The properties for the LocalStorageLoader | Props |
Props
Property | Required | Description | Type |
---|---|---|---|
storageKey | Yes | The key used to retrieve data from local storage | String |
nestedComponents | Yes | An array of components to be rendered with the loaded data | Component[] |