File

core/common/extension-hooks.ts

Extends

StateService

Implements

ExtensionPoint

Index

Properties
Methods

Constructor

constructor(rootInjector: Injector, pluginService: PluginsResolveService)
Parameters :
Name Type Optional
rootInjector Injector No
pluginService PluginsResolveService No

Properties

factories
Type : ExtensionFactory<T>[]
Default value : []
Protected injectors
Type : Injector[]

All injectors to search for an extension.

items$
Type : Observable<T[]>
Readonly refresh$
Type : Observable<void>
Readonly state$
Default value : new BehaviorSubject<Set<T>>(new Set<T>())

Methods

refresh
refresh()

Refresh the extension factories

Returns : void
Protected Abstract setupItemsObservable
setupItemsObservable()

Should be called within the constructor of the extending class and set the items$ attribute.

Returns : Observable<T[]>
Protected emitNewState
emitNewState()

Emits a new state.

Returns : void
map
map(mappedProperty: (undefined) => void)

Maps to a property and just returns that property.

Parameters :
Name Type Optional Description
mappedProperty function No

The property to map to.

Returns : Observable<any>

results matching ""

    No results matching ""