Executes a navigation operation and expand the active tab if needed.
(op: () => boolean, shouldExpand: boolean = false)
| 289 | |
| 290 | /** Executes a navigation operation and expand the active tab if needed. */ |
| 291 | private _navigate(op: () => boolean, shouldExpand: boolean = false): void { |
| 292 | const success = op(); |
| 293 | if (success && shouldExpand) { |
| 294 | this.open(); |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | /** Returns the tab item associated with the given pointer event. */ |
| 299 | private _getItem(e: PointerEvent) { |