File

src/app/services/truncator/truncator.service.ts

Description

A truncator service.

Index

Properties
Methods
Accessors

Constructor

constructor(persistenceService: PersistenceService)

Constructs the Truncator service. ~constructor

Parameters :
Name Type Optional Description
persistenceService PersistenceService No

The persistence service injected dependency.

Methods

Public modelChange
modelChange(propertyName: string, value: any)

Template model value setter function.

Parameters :
Name Type Optional
propertyName string No
value any No
Returns : void
Public remaining
remaining(collection: any[])

Remaining collection.

Parameters :
Name Type Optional Description
collection any[] No

The collection to process.

Returns : any[]

The remaining collection.

Public remainingLength
remainingLength(collection: any[])

Remaining collection length.

Parameters :
Name Type Optional Description
collection any[] No

The collection to process.

Returns : number

The remaining collection length.

Public truncated
truncated(collection: any[])

Truncated collection.

Parameters :
Name Type Optional Description
collection any[] No

The collection to process.

Returns : any[]

The truncated collection.

Properties

Public Readonly persistenceService
Type : PersistenceService
The persistence service injected dependency.
Public truncatorKind
Default value : 0 as TruncatorKind

Truncator kind.

Accessors

focusThreshold
getfocusThreshold()

Focus threshold feature getter.

tagCloudEmphasis
gettagCloudEmphasis()

Tag cloud emphasis feature getter.

FocusThreshold
getFocusThreshold()

Focus threshold getter.

setFocusThreshold(value)

Focus threshold setter.

Parameters :
Name Optional
value No
Returns : void
TagCloudEmphasis
getTagCloudEmphasis()

Tag cloud emphasis getter.

setTagCloudEmphasis(value)

Tag cloud emphasis setter.

Parameters :
Name Optional
value No
Returns : void

results matching ""

    No results matching ""