Actions Close Drawer

Edit on GitHub

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

Overview

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.
<spy-button-action
    [action]="{
        type: 'close-drawer',
    }"
>
</spy-button-action>

Service registration

Register the service:

@NgModule({
    imports: [
        ActionsModule.withActions({
            'close-drawer': CloseDrawerActionHandlerService,
        }),
    ],
})
export class RootModule {}

Interfaces

Below you can find interfaces for the Actions Close Drawer:

export interface CloseDrawerActionConfig extends ActionConfig {}