* Returns the dialog's trigger.
()
| 139 | * Returns the dialog's trigger. |
| 140 | */ |
| 141 | getTrigger(): HTMLElement { |
| 142 | if (!this._trigger) { |
| 143 | throw new Error('No trigger element found for dialog.'); |
| 144 | } |
| 145 | |
| 146 | return this._trigger; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Returns the dialog if present. |