File tree Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export class AjaxDialogComponent implements OnInit{
26
26
}
27
27
ngAfterViewInit ( ) :void {
28
28
document . getElementById ( 'ajaxBtn' ) . focus ( ) ;
29
- this . dialog . show ( ) ;
30
29
}
31
30
public header : string = 'Twitter' ;
32
31
public content : string = this . ajaxData ;
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ export class DefaultDialogComponent {
21
21
public alertContent : string = '10% of battery remaining' ;
22
22
public confirmContent : string = '<span>Are you sure you want to permanently delete all of these items?</span>' ;
23
23
public showCloseIcon : Boolean = false ;
24
+ public visible : Boolean = true ;
25
+ public hidden : Boolean = false ;
24
26
public confirmCloseIcon : Boolean = true ;
25
27
public target : string = '.control-section' ;
26
28
public alertWidth : string = '250px' ;
@@ -30,7 +32,6 @@ export class DefaultDialogComponent {
30
32
public hide : any ;
31
33
ngAfterViewInit ( ) :void {
32
34
document . getElementById ( 'alertbtn' ) . focus ( ) ;
33
- this . alertDialog . show ( ) ;
34
35
document . getElementById ( 'password' ) . addEventListener ( "focus" , function ( ) {
35
36
this . parentElement . classList . add ( 'e-input-focus' ) ;
36
37
} ) ;
Original file line number Diff line number Diff line change 5
5
6
6
< button ej-button class ='dlgbtn ' #promptButton (click) ="promptBtnClick() "> Prompt</ button >
7
7
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 '
9
9
[width] ='alertWidth '>
10
10
</ ej-dialog >
11
11
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 '
13
13
[width] ='confirmWidth '>
14
14
</ ej-dialog >
15
15
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 '>
17
17
< table style ="border-collapse: separate;border-spacing: 10px;width:100%;padding: 0px 20px 20px; ">
18
18
< tr >
19
19
< td > SSID:</ td >
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export class ModalDialogComponent {
21
21
public hide : any ;
22
22
ngAfterViewInit ( ) :void {
23
23
document . getElementById ( 'modalbtn' ) . focus ( ) ;
24
- this . modalDialog . show ( ) ;
25
24
}
26
25
modalBtnClick ( ) {
27
26
this . modalDialog . show ( ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ export class RTLDialogComponent {
23
23
public hide : any ;
24
24
ngAfterViewInit ( ) :void {
25
25
document . getElementById ( 'rtlbtn' ) . focus ( ) ;
26
- this . rtlDialog . show ( ) ;
27
26
}
28
27
dialogClose ( ) {
29
28
document . getElementById ( 'rtlbtn' ) . style . display = '' ;
You can’t perform that action at this time.
0 commit comments