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

Method show

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

Source from the content-addressed store, hash-verified

2446 return this._isShown ? this.hide() : this.show(relatedTarget);
2447 }
2448 show(relatedTarget) {
2449 if (this._isShown || this._isTransitioning) {
2450 return;
2451 }
2452 const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$4, {
2453 relatedTarget
2454 });
2455 if (showEvent.defaultPrevented) {
2456 return;
2457 }
2458 this._isShown = true;
2459 this._isTransitioning = true;
2460 this._scrollBar.hide();
2461 document.body.classList.add(CLASS_NAME_OPEN);
2462 this._adjustDialog();
2463 this._backdrop.show(() => this._showElement(relatedTarget));
2464 }
2465 hide() {
2466 if (!this._isShown || this._isTransitioning) {
2467 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