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
This shows an initial list without the item-extra string, allows toggling an item to show item-extra, and allows toggling again to hide the item-extra string.
The text was updated successfully, but these errors were encountered:
Yeah this is a known issue, reported in #66. I did have a look at fixing it the other day but couldn't think of a solution without changing loads of code. If you can think of a nice way to solve this, we'd happily accept a fix.
Using the example here:
https://github.com/php-school/cli-menu/blob/master/examples/toggle-item-extra.php
but changing the following
to
creates the item-extra string outside of terminal window:
Toggling the items to trigger
$item->hideItemExtra()
does not hide the item-extra strings.A workaround is passing
true
toaddItem()
then looping through all items and hiding item-extra:This shows an initial list without the item-extra string, allows toggling an item to show item-extra, and allows toggling again to hide the item-extra string.
The text was updated successfully, but these errors were encountered: