Executes a navigation operation and expand the active tab if needed.
(op: () => boolean, shouldExpand: boolean = false)
| 306 | |
| 307 | /** Executes a navigation operation and expand the active tab if needed. */ |
| 308 | private _navigate(op: () => boolean, shouldExpand: boolean = false): void { |
| 309 | const success = op(); |
| 310 | if (success && shouldExpand) { |
| 311 | this.open(); |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | /** Returns the tab item associated with the given event. */ |
| 316 | private _getItem(e: Event) { |