api.getStores()
Description
Gets an object with the DataStore properties of Pivot
Usage
api.getStores(): object;
Returns
The method returns an object with the DataStore parameters:
{
data: DataStore // ( object of parameters )
}
Example
// create Pivot
const table = new pivot.Pivot("#root", {
fields,
data: dataset,
config: {
rows: ["studio", "genre"],
columns: [],
values: [
{
field: "title",
method: "count"
},
{
field: "score",
method: "max"
}
]
}
});
const stores = table.api.getStores();
console.log("DataStore:", stores);