File

operations/bulk-operations-list/modals/bulk-operations-modal.component.ts

Metadata

Index

Properties
Methods

Constructor

constructor(bsModalRef: BsModalRef, resolver: ComponentFactoryResolver)
Parameters :
Name Type Optional
bsModalRef BsModalRef No
resolver ComponentFactoryResolver No

Methods

cancel
cancel()
Returns : void
createComponent
createComponent(item: OperationType)
Parameters :
Name Type Optional
item OperationType No
Returns : void

Properties

container
Decorators :
@ViewChild('container', {static: false, read: ViewContainerRef})
showComponent
Type : boolean
Default value : false
<div class="viewport-modal">
  <div class="modal-header dialog-header">
    <h1 class="c8y-icon c8y-icon-energy"></h1>
    <h4 translate>Add bulk operation</h4>
  </div>
  <div class="modal-inner-scroll">
    <div class="modal-body text-center" [hidden]="showComponent">
      <h4 translate>Select one of the available options</h4>
      <p c8y-guide-docs>
        <small translate ngNonBindable>
          Check the
          <a c8y-guide-href="users-guide/device-management/#bulk-operation-wizard"
            >User guide`KEEP_ORIGINAL`</a
          >
          for more details.</small
        >
      </p>
    </div>

    <c8y-bulk-operation-type-list
      (onCustomType)="createComponent($event)"
    ></c8y-bulk-operation-type-list>
    <template #container></template>
  </div>
  <div class="modal-footer" [hidden]="showComponent">
    <button
      (click)="cancel()"
      type="button"
      class="btn btn-default"
      title="{{ 'Cancel' | translate }}"
    >
      <span translate>Cancel</span>
    </button>
  </div>
</div>

results matching ""

    No results matching ""