MCPcopy Create free account
hub / github.com/aspnet/AzureSignalR-samples / show

Method show

aspnet-samples/AspNetForm/Scripts/bootstrap.js:2471–2487  ·  view source on GitHub ↗
(relatedTarget)

Source from the content-addressed store, hash-verified

2469 return this._isShown ? this.hide() : this.show(relatedTarget);
2470 }
2471 show(relatedTarget) {
2472 if (this._isShown || this._isTransitioning) {
2473 return;
2474 }
2475 const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$4, {
2476 relatedTarget
2477 });
2478 if (showEvent.defaultPrevented) {
2479 return;
2480 }
2481 this._isShown = true;
2482 this._isTransitioning = true;
2483 this._scrollBar.hide();
2484 document.body.classList.add(CLASS_NAME_OPEN);
2485 this._adjustDialog();
2486 this._backdrop.show(() => this._showElement(relatedTarget));
2487 }
2488 hide() {
2489 if (!this._isShown || this._isTransitioning) {
2490 return;

Callers 1

toggleMethod · 0.95

Calls 4

_adjustDialogMethod · 0.95
_showElementMethod · 0.95
hideMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected