Actions Close Drawer

Edit on GitHub

This document explains the Actions Close Drawer service in the Components Library.


Actions Close Drawer is an Angular Service that closes the first Drawer in the current context.

Check out an example usage of the Actions Close Drawer.

Service configuration:

  • type—an action type.
        type: 'close-drawer',

Service registration

Register the service:

declare module '@spryker/actions' {
    interface ActionsRegistry {
        'close-drawer': CloseDrawerActionHandlerService;

    imports: [
            'close-drawer': CloseDrawerActionHandlerService,
export class RootModule {}


Below you can find interfaces for the Actions Close Drawer:

export interface CloseDrawerActionConfig extends ActionConfig {}