Skip to main content

Store

On this page you will find how to create a workspace using the Store as DataSource.

Basic Usage

ParametersDescription
queryData of the query
componentDefinitionIdId of the component
customOperatorsUse this parameter to select the data source
WorkspaceContextUse this parameter to have access to the context of the workspace

(
query,
creators,
operators,
componentDefinitionId,
customOperators,
workspaceContext
) =>
creators.of(query).pipe(
customOperators.selectDataSource("expense"),
operators.map((queryData) => {
const data = queryData.Data;
return { Data: [...data], Filters: query.Filters };
})
);

Example

img-box-shadow

img-box-shadow

img-box-shadow