# Storage

## appmixer.ui.Storage

![](https://3013747694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LATDgYqVMe0hChW7efU%2F-L_Iqy4wpN4OpykkYsJU%2F-L_Iy1tct97oN682yeM9%2FScreenshot%202019-03-06%20at%2018.05.58.png?alt=media\&token=6bf6a598-9ce5-44aa-b7c5-197f73e53b31)

The appmixer.ui.Storage is a UI widget that displays the user's data stores.

| Method                        | Description                                                                                                                                                                                                                                                                                          |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `appmixer.ui.Storage(config)` | Constructor function that accepts `config` object. The `config` object must contain at least the `el` property that points to a container DOM element where the Storage widget will be rendered.                                                                                                     |
| `open()`                      | Render the Storage inside its container.                                                                                                                                                                                                                                                             |
| `close()`                     | Close the Storage widget.                                                                                                                                                                                                                                                                            |
| `state(name, value)`          | Change the state of the UI. Currently, only `"loader"` and `"error"` states are supported. For example, in order to show a loader in the flow manager UI, just call `state("loader", true)`. If you want to display an error in the flow manager UI, call `state("error", "Something went wrong.")`. |
| `reload()`                    | Reload the Storage. Calling this can be useful when stores have been added or removed, so the changes are reflected in the UI.                                                                                                                                                                       |
