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