File

src/lib/inbox-layout/inbox-detail-view/inbox-detail-view.service.ts

Description

Provides control and state of the publicly available subjects of the inbox detail view.

Import Information:

  1. Not all attributes are changeable. Or should be changed (consult the api documentation).
Example :
import { InboxDetailViewService } from '@talenra/inbox';

Index

Properties
Methods

Methods

Public setDetailViewExpanded
setDetailViewExpanded(isExpanded: boolean)

Collapses or expands the inbox detail view.

Parameters :
Name Type Optional Description
isExpanded boolean No

Whether the inbox detail view is expanded or not.

Returns : void
Public setNoteBoxExpanded
setNoteBoxExpanded(isExpanded: boolean)

Collapses or expands the inbox note box.

Parameters :
Name Type Optional Description
isExpanded boolean No

Whether the note box is expanded or not.

Returns : void
Public setSelectedDetailViewTab
setSelectedDetailViewTab(key: string)

Updates the current selected item.

Parameters :
Name Type Optional Description
key string No

The key of the selected item (has to be a string from '1','2', '3' ... to the last tab).

Returns : void

Properties

Public Readonly detailViewExpanded$
Type : unknown
Default value : new BehaviorSubject(false)

Provides whether the inbox detail view side panel is expanded. Note that the state (collapsed or expanded) is kept even if the current layout does not involve the inbox detail view side panel.

Public Readonly noteBoxExpanded$
Type : unknown
Default value : new BehaviorSubject<boolean>(true)

Provides the state whether the inbox note box is expanded.

Public Readonly selectedDetailViewTab$
Type : unknown
Default value : new BehaviorSubject<string>('1')

Provides the selectedItem's state (current item).

results matching ""

    No results matching ""