File

core/dynamic-component/dynamic-component.service.ts

Extends

ExtensionPointForPlugins

Index

Properties
Methods
Accessors

Constructor

constructor(rootInjector: Injector, router: Router, waitTimeout: number, dynamicResolver: DynamicResolverService, plugins: PluginsResolveService)
Parameters :
Name Type Optional
rootInjector Injector No
router Router No
waitTimeout number No
dynamicResolver DynamicResolverService No
plugins PluginsResolveService No

Methods

add
add(component: DynamicComponentDefinition)
Parameters :
Name Type Optional
component DynamicComponentDefinition No
Returns : void
Async executeResolvers
executeResolvers(componentIdAndConfig: Array)
Parameters :
Name Type Optional
componentIdAndConfig Array<literal type> No
Returns : unknown
getById
getById(id)

Returns a component by it's id as an observable.

Parameters :
Name Optional Description
id No

The id of the component.

remove
remove(component: DynamicComponentDefinition)
Parameters :
Name Type Optional
component DynamicComponentDefinition No
Returns : void
Async serializeConfigs
serializeConfigs(componentIdAndConfig: Array)
Parameters :
Name Type Optional
componentIdAndConfig Array<literal type> No
Returns : unknown
Protected setupItemsObservable
setupItemsObservable()
refresh
refresh()

Refresh the extension factories

Returns : void
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>

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>())

Accessors

state
getstate()

results matching ""

    No results matching ""