Skip to content

Commit 538004e

Browse files
author
pipeline
committed
feature(EJ2-3071): EJ2-3071 showOnInit API changed to visible
1 parent 03d5797 commit 538004e

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

src/dialog/ajax.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export class AjaxDialogComponent implements OnInit{
2626
}
2727
ngAfterViewInit():void{
2828
document.getElementById('ajaxBtn').focus();
29-
this.dialog.show();
3029
}
3130
public header: string = 'Twitter';
3231
public content: string = this.ajaxData;

src/dialog/basic.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export class DefaultDialogComponent {
2121
public alertContent: string = '10% of battery remaining';
2222
public confirmContent: string = '<span>Are you sure you want to permanently delete all of these items?</span>';
2323
public showCloseIcon: Boolean = false;
24+
public visible: Boolean = true;
25+
public hidden: Boolean = false;
2426
public confirmCloseIcon: Boolean = true;
2527
public target: string = '.control-section';
2628
public alertWidth: string = '250px';
@@ -30,7 +32,6 @@ export class DefaultDialogComponent {
3032
public hide: any;
3133
ngAfterViewInit():void{
3234
document.getElementById('alertbtn').focus();
33-
this.alertDialog.show();
3435
document.getElementById('password').addEventListener("focus", function () {
3536
this.parentElement.classList.add('e-input-focus');
3637
});

src/dialog/basic.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
<button ej-button class='dlgbtn' #promptButton (click)="promptBtnClick()">Prompt</button>
77

8-
<ej-dialog #alertDialog [buttons]='alertDlgButtons' [header]='alertHeader' [animationSettings]='animationSettings' [content]='alertContent' [showCloseIcon]='showCloseIcon' (open)="dialogOpen()" (close)="dialogClose()" [target]='target'
8+
<ej-dialog #alertDialog [buttons]='alertDlgButtons' [visible]='visible' [header]='alertHeader' [animationSettings]='animationSettings' [content]='alertContent' [showCloseIcon]='showCloseIcon' (open)="dialogOpen()" (close)="dialogClose()" [target]='target'
99
[width]='alertWidth'>
1010
</ej-dialog>
1111

12-
<ej-dialog #confirmDialog [buttons]='confirmDlgButtons' [header]='confirmHeader' [animationSettings]='animationSettings' [content]='confirmContent' [showCloseIcon]='confirmCloseIcon' (open)="dialogOpen()" (close)="dialogClose()" [target]='target'
12+
<ej-dialog #confirmDialog [buttons]='confirmDlgButtons' [visible]='hidden' [header]='confirmHeader' [animationSettings]='animationSettings' [content]='confirmContent' [showCloseIcon]='confirmCloseIcon' (open)="dialogOpen()" (close)="dialogClose()" [target]='target'
1313
[width]='confirmWidth'>
1414
</ej-dialog>
1515

16-
<ej-dialog #promptDialog [buttons]='promptDlgButtons' [header]='promptHeader' [animationSettings]='animationSettings' [showCloseIcon]='showCloseIcon' [target]='target' (open)="dialogOpen()" (close)="dialogClose()" [width]='promptWidth'>
16+
<ej-dialog #promptDialog [buttons]='promptDlgButtons' [visible]='hidden' [header]='promptHeader' [animationSettings]='animationSettings' [showCloseIcon]='showCloseIcon' [target]='target' (open)="dialogOpen()" (close)="dialogClose()" [width]='promptWidth'>
1717
<table style="border-collapse: separate;border-spacing: 10px;width:100%;padding: 0px 20px 20px;">
1818
<tr>
1919
<td>SSID:</td>

src/dialog/modal.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export class ModalDialogComponent {
2121
public hide: any;
2222
ngAfterViewInit():void{
2323
document.getElementById('modalbtn').focus();
24-
this.modalDialog.show();
2524
}
2625
modalBtnClick() {
2726
this.modalDialog.show();

src/dialog/rtl.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export class RTLDialogComponent {
2323
public hide: any;
2424
ngAfterViewInit():void{
2525
document.getElementById('rtlbtn').focus();
26-
this.rtlDialog.show();
2726
}
2827
dialogClose() {
2928
document.getElementById('rtlbtn').style.display = '';

0 commit comments

Comments
 (0)