Every line of 'angular hide button' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
26 hide() { 27 return new Promise(resolve => { 28 const interval = setInterval(() => { 29 const ref = this.getDialog(); 30 if (ref) { 31 clearInterval(interval); 32 resolve(ref.hide()); 33 } 34 }, 30); 35 }); 36 }
161 function ngHide() { 162 if (scope.ngHide === true) { 163 doHide(); 164 } else if (scope.ngHide === false) { 165 doShow(); 166 } 167 $ionicScrollDelegate.resize(); 168 }
95 get showCancelButton(): boolean { 96 return this._showCancelButton; 97 }
129 hide () { 130 this._selectDialog() 131 this._hideDialog() 132 }
201 public hide(event?: Event): void { 202 if (event) { 203 event.preventDefault(); 204 } 205 206 // fix(modal): resolved problem with not pausing iframe/video when closing modal 207 const iframeElements = Array.from(this._element.nativeElement.querySelectorAll('iframe')); 208 const videoElements = Array.from(this._element.nativeElement.querySelectorAll('video')); 209 210 iframeElements.forEach((iframe: HTMLIFrameElement) => { 211 const srcAttribute: any = iframe.getAttribute('src'); 212 this._renderer.setAttribute(iframe, 'src', srcAttribute); 213 }); 214 215 videoElements.forEach((video: HTMLVideoElement) => { 216 video.pause(); 217 }); 218 219 this.onHide.emit(this); 220 this.close.emit(this); 221 222 if (!this._isShown) { 223 return; 224 } 225 226 clearTimeout(this.timerHideModal); 227 clearTimeout(this.timerRmBackDrop); 228 229 this._isShown = false; 230 this._renderer.removeClass(this._element.nativeElement, ClassName.IN); 231 if (!isBs3()) { 232 this._renderer.removeClass(this._element.nativeElement, ClassName.SHOW); 233 } 234 235 if (this.isAnimated) { 236 this.timerHideModal = setTimeout(() => this.hideModal(), TRANSITION_DURATION); 237 } else { 238 this.hideModal(); 239 } 240 }
9 function hideButton(elementId) { 10 document.getElementById(elementId).style.display = "none"; 11 }
110 function hideButtons() { 111 if (!$("#copypassword").hasClass("hidden")) { 112 $("#copypassword").addClass("hidden"); 113 } 114 if (!$("#injectpassword").hasClass("hidden")) { 115 $("#injectpassword").addClass("hidden"); 116 } 117 }
401 value: function hideButtons() { 402 this.buttons.classList.remove('medium-editor-insert-buttons-active'); 403 this.buttons.classList.remove('medium-editor-insert-addons-active'); 404 }
182 function setButtonShown(el, shown) { 183 shown() && el.addClass('visible') || el.removeClass('active'); 184 ionic.requestAnimationFrame(function() { 185 shown() && el.addClass('active') || el.removeClass('visible'); 186 }); 187 }
43 hide() { 44 // 当弹窗动画完成时,发布事件 45 this.alertController.publishAction(); 46 }