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

Method show

aspnet-samples/AspNetForm/Scripts/bootstrap.js:4082–4102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4080
4081 // Public
4082 show() {
4083 // Shows this elem and deactivate the active sibling if exists
4084 const innerElem = this._element;
4085 if (this._elemIsActive(innerElem)) {
4086 return;
4087 }
4088
4089 // Search for active tab on same parent to deactivate it
4090 const active = this._getActiveElem();
4091 const hideEvent = active ? EventHandler.trigger(active, EVENT_HIDE$1, {
4092 relatedTarget: innerElem
4093 }) : null;
4094 const showEvent = EventHandler.trigger(innerElem, EVENT_SHOW$1, {
4095 relatedTarget: active
4096 });
4097 if (showEvent.defaultPrevented || hideEvent && hideEvent.defaultPrevented) {
4098 return;
4099 }
4100 this._deactivate(active, innerElem);
4101 this._activate(innerElem, active);
4102 }
4103
4104 // Private
4105 _activate(element, relatedElem) {

Callers 12

script.jsFile · 0.45
jquery-3.7.1.jsFile · 0.45
jquery-3.7.1.jsFile · 0.45
dataApiKeydownHandlerMethod · 0.45
showMethod · 0.45
showMethod · 0.45
bootstrap.jsFile · 0.45
_keydownMethod · 0.45
jquery-3.7.0.jsFile · 0.45
WebPartMenu_ShowFunction · 0.45
MenuStandards.jsFile · 0.45
jquery-3.7.1.jsFile · 0.45

Calls 4

_elemIsActiveMethod · 0.95
_getActiveElemMethod · 0.95
_deactivateMethod · 0.95
_activateMethod · 0.95

Tested by

no test coverage detected