File

layout-service/src/layout-service/layout.service.ts

Description

Provides control and state of the global layout.

Import

Example :
import { LayoutService } from '@talenra/components/layout-service';

Index

Properties
Methods

Methods

Public setAppearance
setAppearance(scheme: AppearanceScheme)

Applies the given appearance scheme.

Parameters :
Name Type Optional
scheme AppearanceScheme No
Returns : void
Public setTheme
setTheme(theme: Theme)

Applies the given color theme.

Parameters :
Name Type Optional
theme Theme No
Returns : void

Properties

Public Readonly appearanceScheme$
Type : unknown
Default value : new BehaviorSubject<AppearanceScheme>(AppearanceScheme.Light)

Provides the current appearance scheme.

see AppearanceScheme

Public Readonly theme$
Type : unknown
Default value : new BehaviorSubject<Theme>(Theme.Petrol)

Provides the current color theme.

see Theme

Public Readonly useOverlayLayout$
Type : unknown
Default value : new BehaviorSubject<boolean>(this.shallUseOverlayLayout())

Determines whether to use "overlay layout" for side-navigation and sidepanels. Overlay layout means that elements like side-navigation and sidepanels are displayes on top of the content. It is used for small viewports only.

Note: Has nothing to do with OverlayService or OverlayLayout and will probably be renamed.

results matching ""

    No results matching ""