( orientation: 'vertical' | 'horizontal', )
| 35 | |
| 36 | /** Provider that provides the parent menu stack, or a new inline menu stack if there is no parent one. */ |
| 37 | export const PARENT_OR_NEW_INLINE_MENU_STACK_PROVIDER = ( |
| 38 | orientation: 'vertical' | 'horizontal', |
| 39 | ) => ({ |
| 40 | provide: MENU_STACK, |
| 41 | useFactory: () => |
| 42 | inject(MENU_STACK, {optional: true, skipSelf: true}) || MenuStack.inline(orientation), |
| 43 | }); |
| 44 | |
| 45 | /** Options that can be provided to the close or closeAll methods. */ |
| 46 | export interface CloseOptions { |