src/lib/markup-kit/executors/step-executor/step-executor.component.ts
Wrapper component that represents a specific encapsulated executor.
Example of usage:
<mefdev-step-executor #mainExecutor [view]="'regular'">
<ng-template #title>
<!-- Content for the executor title -->
</ng-template>
<ng-template #description>
<!-- Content for the executor description -->
</ng-template>
<mefdev-executor-page
[title]="'Description of situation 1'"
[isActive]="mainExecutor.activePageInd === 0"
[isCompleted]="mainExecutor.activePageInd >= 0">
<!-- Content of the first executor step -->
</mefdev-executor-page>
<mefdev-executor-page
[title]="'Description of situation 2'"
[isActive]="mainExecutor.activePageInd === 1"
[isCompleted]="mainExecutor.activePageInd >= 1">
<!-- Content of the second executor step -->
</mefdev-executor-page>
<mefdev-executor-page
[title]="'Description of situation 3'"
[isActive]="mainExecutor.activePageInd === 2"
[isCompleted]="mainExecutor.activePageInd >= 2">
<!-- Content of the third executor step -->
</mefdev-executor-page>
<ng-template #footer>
<!-- Content for the executor footer -->
<ng-template>
</mefdev-step-executor>
AfterViewInit
selector | mefdev-step-executor |
styleUrls | ./step-executor.component.scss |
templateUrl | ./step-executor.component.html |
Properties |
|
Methods |
Inputs |
Outputs |
Accessors |
constructor(renderer: Renderer2, changeDetectorRef: ChangeDetectorRef)
|
|||||||||
Parameters :
|
show |
Type : boolean
|
An optional input parameter that specifies whether to show your executor. Usually used when you have a slideup or right executor view
|
view |
Type : string
|
Required : true |
Mandatory input parameter that specifies the type of the step-by-step wizard. It can have three options: regular, modal, right.
|
onActivePageChange |
Type : EventEmitter<MefdevExecutorPageComponent>
|
The output parameter that emits the class of the active page - active step.
|
addPage | ||||||
addPage(page: MefdevExecutorPageComponent)
|
||||||
Add new page
Parameters :
Returns :
void
|
cancel |
cancel()
|
Go back to the previous step
Returns :
void
|
closeExecutor |
closeExecutor()
|
A function that allows you to close your executor
Returns :
void
|
modalStepExecutorVisibleChange | ||||||
modalStepExecutorVisibleChange(value: boolean)
|
||||||
A function that is allows to track the status of your executor in the modal view
Parameters :
Returns :
void
|
next |
next()
|
Go to the next step
Returns :
void
|
nextBtnIsDisabled |
nextBtnIsDisabled()
|
Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
Returns :
boolean
|
prev |
prev()
|
Check whether there is a next step of the executor. If we are at the last step - disable the 'next' button
Returns :
void
|
removePageByIndex | ||||||
removePageByIndex(index: number)
|
||||||
Delete a page by its index
Parameters :
Returns :
void
|
removeSpecificPage | ||||||
removeSpecificPage(page: MefdevExecutorPageComponent)
|
||||||
Delete a specific page
Parameters :
Returns :
void
|
rightStepExecutorVisibleChange | ||||||
rightStepExecutorVisibleChange(value: boolean)
|
||||||
A function that is allows to track the status of your executor in the right view
Parameters :
Returns :
void
|
setActivePage | ||||||
setActivePage(pageNumber: number)
|
||||||
Set a specific active page
Parameters :
Returns :
void
|
Public _activePageInd |
Type : number
|
Default value : 0
|
container |
Type : ElementRef<HTMLElement>
|
Decorators :
@ViewChild('container')
|
ViewChild reference to the host executor content. |
Public pages |
Type : MefdevExecutorPageComponent[]
|
Default value : []
|
activePageInd | ||||||
getactivePageInd()
|
||||||
setactivePageInd(activePageNumber: number)
|
||||||
Parameters :
Returns :
void
|
activePage |
getactivePage()
|