operations/bulk-operations-list/modals/bulk-operations-modal.component.ts
OnInit
selector | c8y-bulk-operations-modal |
templateUrl | bulk-operations-modal.component.html |
Properties |
Methods |
constructor(bsModalRef: BsModalRef, router: Router, gainsightService: GainsightService, bulkOperationsService: BulkOperationsService, bulkOperationModalsService: BulkOperationModalsService)
|
||||||||||||||||||
Parameters :
|
cancel |
cancel()
|
Returns :
void
|
createComponent | ||||||
createComponent(item: OperationType)
|
||||||
Parameters :
Returns :
void
|
handleClick | ||||||
handleClick(item: OperationType)
|
||||||
Parameters :
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
BULK_OPERATION_EVENT |
Default value : BULK_OPERATION_EVENT
|
bulkActions |
Default value : ACTIONS_OPERATIONS_BULK
|
bulkList |
Type : OperationType[]
|
Default value : []
|
container |
Decorators :
@ViewChild('container', {static: false, read: ViewContainerRef})
|
pxSteps |
Default value : BULK_OPERATION_DIALOG_STEPS
|
showComponent |
Default value : false
|
<div class="viewport-modal">
<div class="modal-header dialog-header">
<i c8yIcon="c8y-energy"></i>
<h4
id="modal-title"
translate
>
Add bulk operation
</h4>
</div>
<div
class="modal-inner-scroll"
id="modal-body"
>
<div
class="modal-body p-t-8 p-b-8 sticky-top separator-bottom text-center"
[hidden]="showComponent"
>
<p
class="text-medium"
translate
>
Select one of the available options
</p>
<p c8y-guide-docs>
<small
translate
ngNonBindable
>
Check the
<a
c8y-guide-href="/docs/device-management-application/monitoring-and-controlling-devices/#to-add-a-bulk-operation-using-the-wizard"
>
user documentation
</a>
for more details.
</small>
</p>
</div>
<div class="list-group list-group-links">
<button
class="list-group-item flex-row"
type="button"
*ngFor="let item of bulkList"
(click)="handleClick(item)"
>
<div
class="list-item-icon"
*ngIf="item.c8yIcon; else icon"
>
<i [c8yIcon]="item.c8yIcon"></i>
</div>
<ng-template #icon>
<div class="list-item-icon">
<i c8yIcon="cogs"></i>
</div>
</ng-template>
<div
class="list-item-body text-truncate"
title="{{ item.name | translate }}"
>
{{ item.name | translate }}
</div>
</button>
</div>
<template #container></template>
</div>
<div
class="modal-footer"
[hidden]="showComponent"
>
<button
class="btn btn-default"
title="{{ 'Cancel' | translate }}"
type="button"
(click)="cancel()"
c8yProductExperience
[actionName]="BULK_OPERATION_EVENT"
[actionData]="{
action: bulkActions.CANCEL_ADD_BULK_OPERATION_DIALOG,
step: pxSteps.SELECT_OPERATION_TYPE
}"
>
<span translate>Cancel</span>
</button>
</div>
</div>