api.getStores()
Description
Gets an object with the DataStore properties of the FilemanagerUsage
api.getStores(): object;
Returns
The method returns an object with the DataStore parameters:
{
data: DataStore // ( object of parameters )
}
Example
The example below shows how to output DataStore to the console:
import { Filemanager } from "@svar-ui/react-filemanager";
import { getData, getDrive } from "./common/data";
function App() {
function init(api) {
const stores = api.getStores();
console.log("DataStore:", stores);
}
return <Filemanager data={getData()} drive={getDrive()} init={init} />;
}
Related articles: