File

core/modal/modal-confirm.component.ts

Implements

OnDestroy

Metadata

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(modal: BsModalRef)
Parameters :
Name Type Optional
modal BsModalRef No

Inputs

body
Type : string
labels
status
Type : StatusType
Default value : Status.INFO
title
Type : string

Methods

ngOnDestroy
ngOnDestroy()
Returns : void

Properties

close
Type : function
dismiss
Type : function
result
Type : Promise<boolean>

Accessors

labels
getlabels()
setlabels(labels: ModalLabels)
Parameters :
Name Type Optional
labels ModalLabels No
Returns : void
classIcon
getclassIcon()
classAlert
getclassAlert()
<div class="c8y-prompt alert" [ngClass]="[classAlert]">
  <h3 class="m-b-16" *ngIf="title">
    <i class="dlt-c8y-icon" [ngClass]="[classIcon]"></i>
    <span *ngIf="title">{{ title | translate }}</span>
  </h3>
  <p class="text-break-word">{{ body | translate }}</p>
  <ng-content></ng-content>
  <div class="alert-footer">
    <button
      title="{{ labels.cancel | translate }}"
      class="btn btn-default"
      *ngIf="labels.cancel !== null"
      (click)="dismiss()"
    >
      {{ labels.cancel | translate }}
    </button>
    <button title="{{ labels.ok | translate }}" class="btn btn-primary" (click)="close()">
      {{ labels.ok | translate }}
    </button>
  </div>
</div>

results matching ""

    No results matching ""