Storage
Methods
collection(...)
(title="name">name: string) => Collection
The collection()
method returns a Collection
instance for working with a named collection.
You can use this method to store, retrieve, and remove data from the specified collection.
collection()
accepts a single name
parameter to select the collection.
The name
parameter specifies the name of the collection you want to access.
Example:
// Select a storage collection
const configuration = miro.board.storage.collection('configuration');
// Read value from collection
const value = await configuration.get('color-theme');
All properties
Property | Type |
---|---|
collection(...) |
(title="name">name: string) => Collection |