File

core/header/header.service.ts

Description

A service which defines header functions.

Extends

StateService

Index

Properties
Methods
Accessors

Constructor

constructor(options: OptionsService, humanizeAppName: HumanizeAppNamePipe, drawerService: DrawerService)
Parameters :
Name Type Optional
options OptionsService No
humanizeAppName HumanizeAppNamePipe No
drawerService DrawerService No

Methods

changePageTitle
changePageTitle(newTitle?: string)

Change the page title.

Parameters :
Name Type Optional Description
newTitle string Yes

The new title of the page.

Returns : void
changeTitle
changeTitle(newTitle?, pageTitleUpdate)

Change the application title.

Parameters :
Name Optional Default value Description
newTitle Yes

The new title of the application.

pageTitleUpdate No true
Returns : void
closeNavigator
closeNavigator()

Force to close the navigator.

Returns : void
closeRightDrawer
closeRightDrawer()

Force to close the right drawer.

Returns : void
configNavigator
configNavigator(config: Partial<>)

Configures navigation options.

  • open: Boolean
Parameters :
Name Type Optional Default value Description
config Partial<> No {}

Object with the properties:

  • open: Boolean
Returns : void
shouldShowBreadcrumbs
shouldShowBreadcrumbs()
Returns : any
toggle
toggle()

Toggles the main header menu in mobile view.

Returns : void
toggleNavigator
toggleNavigator()

Toggles the navigator open status.

Returns : void
toggleRightDrawer
toggleRightDrawer()

Toggles the right drawer open status.

Returns : void
verifyIfNavOpen
verifyIfNavOpen()

This methods checks if the navigator toggles on startup or if an item is added to the navigator node. Delay of 300ms is intended for animation purpose.

Returns : void
Protected emitNewState
emitNewState()

Emits a new state.

Returns : void
map
map(mappedProperty: (undefined) => void)

Maps to a property and just returns that property.

Parameters :
Name Type Optional Description
mappedProperty function No

The property to map to.

Returns : Observable<any>

Properties

canToggleNavigator$
Type : Observable<boolean>
Readonly DELAY_TO_AVOID_FLICKERING_ON_ASYNC_NODES
Type : number
Default value : 1000
header$
Type : Observable<Header>
headerOpen
Default value : false
hideHeader
Default value : false
navigatorOpen$
Type : Observable<boolean>
rightDrawerOpen$
Type : Observable<boolean>
state$
Type : BehaviorSubject<Header>
Default value : new BehaviorSubject<Header>({ title: undefined, nav: { open: false }, rightDrawer: { open: false } })
title
Type : literal type | undefined

Accessors

state
getstate()
navigatorHiddenOnStartup
getnavigatorHiddenOnStartup()
largeWidth
getlargeWidth()
shouldToggle
getshouldToggle()

results matching ""

    No results matching ""