File

src/app/services/entities/entities.service.ts

Description

A entities service.

Index

Properties
Methods
Accessors

Constructor

constructor(generalTimelineService: GeneralTimelineService, uiService: UiService, excelDateFormatterService: ExcelDateFormatterService, model: ModelModel)

Constructs the entities service. ~constructor

Parameters :
Name Type Optional Description
generalTimelineService GeneralTimelineService No

The general timeline service injected dependency.

uiService UiService No

The UI service injected dependency.

excelDateFormatterService ExcelDateFormatterService No

The Excel date formatter service injected dependency.

model ModelModel No

The model injected dependency.

Methods

Public count
count(collection: Indexable[], propertyName: string, splitter: string)

Calculates the number of items in an aggregation string based on a splitter character/string.

Parameters :
Name Type Optional Default value Description
collection Indexable[] No

The collection of objects to process.

propertyName string No

The name of the property to process.

splitter string No ', '

The splitter character/string.

Returns : number

The number of items in an aggregation string.

Public getCountValue
getCountValue(key: string)

Count cache, aggregation or fixed collection length value.

Parameters :
Name Type Optional
key string No
Returns : number
Public getCountValueFormatted
getCountValueFormatted(key: string)

Formatted count value.

Parameters :
Name Type Optional
key string No
Returns : string

Properties

Public Readonly generalTimelineService
Type : GeneralTimelineService
The general timeline service injected dependency.
Public Readonly model
Type : ModelModel
The model injected dependency.
Public Readonly uiService
Type : UiService
The UI service injected dependency.

Accessors

entities
getentities()

Entities getter delegate.

results matching ""

    No results matching ""