File

app-layout/src/header-drawer/header-drawer.service.ts

Description

Provides control and state of the app's header-drawer.

Import

Example :
import { HeaderDrawerService } from '@talenra/components/app-layout';

Index

Properties
Methods

Methods

Public close
close()

Close the header-drawer.

Returns : void
Public setItem
setItem(item: AppHeaderDrawerStateItem)

Displays the header-drawer-item given. Pass an item of value null to collapse the header-drawer.

Parameters :
Name Type Optional
item AppHeaderDrawerStateItem No
Returns : void
Public toggleItem
toggleItem(item: string)

Toggles the header-drawer-item given.

Parameters :
Name Type Optional
item string No
Returns : void

Properties

Public Readonly item$
Type : unknown
Default value : this.stateSrc.pipe( startWith(null), pairwise(), map(([prev, current]) => ({ prev, current })) )

Provides the header-drawer's state (current and previous items).

Used by

results matching ""

    No results matching ""