File

src/app/services/toggle/toggle.service.ts

Description

A toggle service.

Index

Properties
Methods
Accessors

Constructor

constructor(persistenceService: PersistenceService)

Constructs the Toggle service. ~constructor

Parameters :
Name Type Optional Description
persistenceService PersistenceService No

The persistence service injected dependency.

Methods

Public displayValue
displayValue(toggleKind: ToggleKind)

Display value.

Parameters :
Name Type Optional
toggleKind ToggleKind No
Returns : string
Public isSharedPropertyName
isSharedPropertyName(toggleKind: ToggleKind)

Whether property is shared.

Parameters :
Name Type Optional
toggleKind ToggleKind No
Returns : any
Public multiModel
multiModel(toggleKind: ToggleKind)

Multi-model.

Parameters :
Name Type Optional
toggleKind ToggleKind No
Returns : string | undefined

Properties

Static Readonly displayValues
Type : ReadonlyMap<ToggleKind | string>
Default value : new Map([ [ToggleKind.InstantSearch, 'instant search'], [ToggleKind.ContentColumns, 'content columns'], [ToggleKind.LayoutColumns, 'layout columns'], [ToggleKind.FocusThreshold, 'focus threshold'], [ToggleKind.TagCloudEmphasis, 'tag cloud emphasis'], [ToggleKind.Responsive, 'responsive'], [ToggleKind.Context, 'context'], [ToggleKind.Pagination, 'pagination'], [ToggleKind.Tinted, 'tinted'], [ToggleKind.Microprinted, 'microprinted'], [ToggleKind.Captions, 'captions'], [ToggleKind.Decorations, 'decorations'], [ToggleKind.Expand, 'expand'], [ToggleKind.EditMode, 'edit mode'], [ToggleKind.ToolbarCollapsed, 'toolbar collapsed'], ])

Display values

Public Readonly persistenceService
Type : PersistenceService
The persistence service injected dependency.

Accessors

captions
getcaptions()

Captions getter.

decorations
getdecorations()

Decorations getter.

toggleKindValues
gettoggleKindValues()

ToggleKind values.

results matching ""

    No results matching ""