2 ~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
8 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
17 <div class="custom-modal {{input.size}}">
18 <div class="ng2-modal-content"
19 [ngDraggable]="input.isMovable"
20 [handle]="ModalHandle"
21 [bounds]="ModalBounds"
23 [preventDefaultEvent]="false">
25 class="ng2-modal-header modal-type-{{input.type}}"
26 [ngClass]="{'movable': input.isMovable}">
27 <span class="title">{{ input.title }}</span>
28 <span class="close-button" (click)="close()"></span>
30 <div class="ng2-modal-body" >
31 <div *ngIf="input.content">{{input.content}}</div>
32 <div #dynamicContentContainer></div>
35 <div class="ng2-modal-footer">
36 <button *ngFor="let button of input.buttons"
37 class="tlv-btn {{button.cssClass}}"
38 [disabled] = "button.getDisabled && button.getDisabled()"
39 [attr.data-tests-id] = "button.text"
40 (click) = "button.callback()">{{button.text}}</button>
44 <div #ModalBounds class="modal-background" [ngClass]="{'transparent': input.isMovable}"></div>