File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 66 value.bind ="textValue "
77 focus.trigger ="inputFocus() ">
88 < span class ="input-group-append ">
9- < button class ="btn btn-outline-secondary " type ="button " click.delegate ="show () ">
9+ < button class ="btn btn-outline-secondary " type ="button " click.delegate ="toggle () ">
1010 < span class ="fa fa-calendar "> </ span >
1111 </ button >
1212 </ span >
Original file line number Diff line number Diff line change @@ -234,6 +234,10 @@ export class AuDateTimePicker {
234234 console . error ( 'Not yet implemented' ) ;
235235 }
236236
237+ protected isVisible ( ) {
238+ return this . poppedElement . style . display === '' ;
239+ }
240+
237241 public show ( ) {
238242 this . poppedElement . style . display = '' ;
239243 }
@@ -247,4 +251,8 @@ export class AuDateTimePicker {
247251 this . show ( ) ;
248252 }
249253 }
254+
255+ public toggle ( ) {
256+ this . isVisible ( ) ? this . hide ( ) : this . show ( ) ;
257+ }
250258}
You can’t perform that action at this time.
0 commit comments