(readonly inputs: MenuItemInputs<V>)
| 845 | readonly pendingFocus = signal<'first' | 'last' | null>(null); |
| 846 | |
| 847 | constructor(readonly inputs: MenuItemInputs<V>) { |
| 848 | this.id = inputs.id; |
| 849 | this.value = inputs.value ?? signal(undefined); |
| 850 | this.element = inputs.element; |
| 851 | this.submenu = this.inputs.submenu; |
| 852 | this.searchTerm = inputs.searchTerm; |
| 853 | this.selectable = computed(() => !this.submenu()); |
| 854 | } |
| 855 | |
| 856 | /** Flushes any pending focus when the submenu instance becomes available. */ |
| 857 | pendingFocusEffect(): void { |