File

core/wizard/wizard.service.ts

Extends

ExtensionPointForPlugins

Index

Properties
Methods
Accessors

Constructor

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

Methods

add
add(entry: WizardEntry)

Adds a new entry in the wizard.

Parameters :
Name Type Optional Description
entry WizardEntry No

Wizard entry to add.

Returns : void
getEntriesListById
getEntriesListById(id: string)

List of wizard entries matching the given id.

Parameters :
Name Type Optional
id string No
Returns : Observable<WizardEntry[]>

observable with list of wizard entries.

remove
remove(entry: WizardEntry)

Removes entry from the wizard.

Parameters :
Name Type Optional Description
entry WizardEntry No

Wizard entry to remove.

Returns : void
Protected setupItemsObservable
setupItemsObservable()
Returns : Observable<WizardEntry[]>
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

Readonly bodyTemplate$
Type : Subject<literal type>
Default value : new Subject()

Wizard body subject. It emits body template.

Readonly footerTemplate$
Type : Subject<literal type>
Default value : new Subject()

Wizard footer subject. It emits footer template.

Readonly headerTemplate$
Type : Subject<literal type>
Default value : new Subject()

Wizard header subject. It emits header template.

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

Returns the current state.

Returns : Set<WizardEntry>

results matching ""

    No results matching ""