You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
->setTitle('Basic CLI Menu Disabled Items > Submenu')
350
+
->addItem('You can go in here!', $itemCallable)
351
+
->end()
352
+
->addSubMenu('Disabled Submenu')
353
+
->setTitle('Basic CLI Menu Disabled Items > Disabled Submenu')
354
+
->addItem('Nope can\'t see this!', $itemCallable)
355
+
->disableMenu()
356
+
->end()
357
+
->addLineBreak('-')
358
+
->build();
359
+
```
360
+
361
+
The third param on the `->addItem` call is what disables an item while the `->disableMenu()` call disables the relevent menu.
362
+
363
+
The outcome is a full menu with dimmed rows to denote them being disabled. When a user navigates these items are jumped over to the next available selectable item.
364
+
365
+
---
333
366
334
367
Once you get going you might just end up with something that looks a little like this...
0 commit comments