[Library | Trunk]: Full screen modal: Make keys optionals
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60599 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
cfe3ab4fd0
commit
255510903a
|
@ -12,7 +12,7 @@ import {Component, ElementRef, EventEmitter, Input, OnInit, Output} from "@angul
|
||||||
<h5 *ngIf="title" class="uk-position-center">
|
<h5 *ngIf="title" class="uk-position-center">
|
||||||
{{title}}
|
{{title}}
|
||||||
</h5>
|
</h5>
|
||||||
<div class="uk-position-center-right uk-visible@m">
|
<div *ngIf="keys" class="uk-position-center-right uk-visible@m">
|
||||||
<button class="uk-button uk-button-secondary outlined" (click)="close()">{{cancelButtonText}}</button>
|
<button class="uk-button uk-button-secondary outlined" (click)="close()">{{cancelButtonText}}</button>
|
||||||
<button class="uk-button uk-button-secondary space" (click)="ok()">{{okButtonText}}</button>
|
<button class="uk-button uk-button-secondary space" (click)="ok()">{{okButtonText}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,7 +20,7 @@ import {Component, ElementRef, EventEmitter, Input, OnInit, Output} from "@angul
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="content-header">
|
<div class="content-header">
|
||||||
<div class="uk-flex uk-flex-center uk-width-1-1 uk-margin-medium-bottom uk-hidden@m">
|
<div *ngIf="keys" class="uk-flex uk-flex-center uk-width-1-1 uk-margin-medium-bottom uk-hidden@m">
|
||||||
<button class="uk-button uk-button-secondary outlined" (click)="close()">{{cancelButtonText}}</button>
|
<button class="uk-button uk-button-secondary outlined" (click)="close()">{{cancelButtonText}}</button>
|
||||||
<button class="uk-button uk-button-secondary space" (click)="ok()">{{okButtonText}}</button>
|
<button class="uk-button uk-button-secondary space" (click)="ok()">{{okButtonText}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,9 +37,8 @@ import {Component, ElementRef, EventEmitter, Input, OnInit, Output} from "@angul
|
||||||
export class FullScreenModalComponent implements OnInit {
|
export class FullScreenModalComponent implements OnInit {
|
||||||
okButtonText = 'OK';
|
okButtonText = 'OK';
|
||||||
cancelButtonText = 'Cancel';
|
cancelButtonText = 'Cancel';
|
||||||
|
keys: boolean = false;
|
||||||
title: string = null;
|
title: string = null;
|
||||||
@Input()
|
|
||||||
customKeys: boolean = false;
|
|
||||||
@Output()
|
@Output()
|
||||||
okEmitter: EventEmitter<boolean> = new EventEmitter<boolean>();
|
okEmitter: EventEmitter<boolean> = new EventEmitter<boolean>();
|
||||||
opened: boolean = false;
|
opened: boolean = false;
|
||||||
|
|
Loading…
Reference in New Issue