core/stepper/stepper.service.ts
A service which defines the steps in a stepper component. A stepper hook needs an certain outlet which has an matching id to display the steps.
Properties |
|
Methods |
Accessors |
constructor(injector: Injector, router: Router, translateService: TranslateService)
|
||||||||||||
Parameters :
|
add | ||||||||
add(item: Step)
|
||||||||
Adds a new item to tabs and emits state change
Parameters :
Returns :
void
|
getById$ | ||||||
getById$(id)
|
||||||
Returns the component by it's asssigned stepper id as an observable.
Parameters :
Returns :
any
|
refresh |
refresh()
|
Refresh the extension factories
Returns :
void
|
remove | ||||||||
remove(item: Step)
|
||||||||
Removes a step and emits a state change.
Parameters :
Returns :
void
|
sortSteps | ||||||
sortSteps(steps: Step[])
|
||||||
Parameters :
Returns :
any
|
Protected emitNewState |
emitNewState()
|
Emits a new state.
Returns :
void
|
map | ||||||||
map(mappedProperty: (undefined) => void)
|
||||||||
Maps to a property and just returns that property.
Parameters :
Returns :
Observable<any>
|
factories |
Type : StepperExtension[]
|
Default value : []
|
items$ |
Type : Observable<Step[]>
|
Readonly refreshTrigger |
Default value : new Subject()
|
Readonly state$ |
Default value : new BehaviorSubject<Set<Step>>(new Set<Step>())
|
state |
getstate()
|
Returns the current state.
Returns :
Set<Step>
|