(elementOrSelector: string | HTMLElement | JQuery)
| 133 | * @returns Existing modal instance or null if not found |
| 134 | */ |
| 135 | export function getModalInstance(elementOrSelector: string | HTMLElement | JQuery): Modal | null { |
| 136 | const element = getElement(elementOrSelector); |
| 137 | if (!element) return null; |
| 138 | |
| 139 | return Modal.getInstance(element); |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Show a modal |
nothing calls this directly
no test coverage detected