Collate data transformer: Table configurator
Edit on GitHubThis document explains the Table Configurator service in the Components Library.
Overview
Table Configurator as a collate data transformer is an Angular Service that re-populates of data to a format suitable for filtering: DataTransformerConfiguratorConfigT
.
Check out an example usage of the Data Transformer Collate Configurator Table in the @spryker/table
config:
<spy-table
[config]="{
datasource: {
...,
transform: {
type: 'collate',
configurator: {
type: 'table',
},
...,
},
},
}"
>
</spy-table>
Service registration
Register the service:
declare module '@spryker/data-transformer.collate' {
interface DataTransformerConfiguratorRegistry {
table: TableDataTransformerConfiguratorService;
}
}
@NgModule({
imports: [
DataTransformerModule.withTransformers({
collate: CollateDataTransformerService,
}),
CollateDataTransformer.withFilters({
table: TableDataTransformerConfiguratorService,
}),
],
})
export class RootModule {}
Thank you!
For submitting the form