Actions Refresh Parent Table
Edit on GitHubThis document explains the Actions Refresh Parent Table service in the Components Library.
Overview
Actions Refresh Parent Table is an Angular Service that refreshes the data of the parent table of a Table in the current context.
Note
Make sure that the table opened from another table, for ex. in the Drawer.
Check out an example usage of the Actions Refresh Parent Table.
Service configuration:
rowActions
—the table row actions. For more details, see Table Feature Row Actions.actions
—an array with actions configuration.type
—an action type.
<spy-table
[config]="{
dataSource: { ... },
columns: [ ... ],
rowActions: {
enabled: true,
actions: [
{
type: 'refresh-parent-table',
},
],
},
}"
>
</spy-table>
Service registration
Register the service:
declare module '@spryker/actions' {
interface ActionsRegistry {
'refresh-parent-table': RefreshParentTableActionHandlerService;
}
}
@NgModule({
imports: [
ActionsModule.withActions({
'refresh-parent-table': RefreshParentTableActionHandlerService,
}),
],
})
export class RootModule {}
Interfaces
Below you can find interfaces for the Actions Refresh Parent Table:
export interface RefreshParentTableActionConfig extends ActionConfig {}
Thank you!
For submitting the form