alarm-event-selector/alarm-event-selector-modal/alarm-event-selector-modal.component.ts
selector | c8y-alarm-event-selector-modal |
templateUrl | ./alarm-event-selector-modal.component.html |
Properties |
Methods |
constructor(bsModal: BsModalRef)
|
||||||
Parameters :
|
close |
close()
|
Returns :
void
|
saveChanges |
saveChanges()
|
Returns :
void
|
selectionChange | ||||||
selectionChange(selection: Array<AlarmOrEvent>)
|
||||||
Parameters :
Returns :
void
|
allowChangingContext |
Default value : true
|
allowSearch |
Default value : true
|
contextAsset |
Type : IIdentified
|
groupsSelectable |
Default value : true
|
hideSource |
Default value : false
|
omitProperties |
Type : OmitSelectorProperties
|
Default value : {}
|
Readonly result |
Type : Promise<AlarmOrEvent[]>
|
Default value : new Promise((resolve, reject) => {
this.save = resolve;
this.cancel = reject;
})
|
saveButtonLabel |
Type : string
|
selectedItems |
Default value : new Array<AlarmOrEvent>()
|
selectType |
Type : TimelineType
|
Default value : 'ALARM'
|
title |
Type : string
|
<div class="modal-header separator">
<h4 class="text-medium">{{ title | translate }}</h4>
</div>
<div class="modal-inner-scroll modal-inner-scroll--fixed">
<c8y-alarm-event-selector
[selectedItems]="selectedItems"
[contextAsset]="contextAsset"
[timelineType]="selectType"
[groupsSelectable]="groupsSelectable"
[hideSource]="hideSource"
[allowChangingContext]="allowChangingContext"
[omitProperties]="omitProperties"
(selectionChange)="selectionChange($event)"
></c8y-alarm-event-selector>
</div>
<div class="modal-footer">
<button
type="button"
[title]="'Cancel' | translate"
class="btn btn-default"
(click)="close()"
translate
>
Cancel
</button>
<button
[title]="saveButtonLabel | translate"
class="btn btn-primary"
[disabled]="!this.selectedItems?.length"
(click)="saveChanges()"
>
{{ saveButtonLabel | translate }}
</button>
</div>