Releases: php-school/cli-menu
Releases · php-school/cli-menu
cli-menu 2.0.0
[2.0.0]
Fixed
- PHPUnit deprecations - updated to createMock()
Changed
- Require ext-posix (#50)
- Make MenuStyle easier to construct by only allowing changes to be made via setters (#45)
Added
- Added getStyle() to CliMenu to get access to the style object from the menu itself (#42)
- Added redraw method to CliMenu which can redraw the menu immediately with any style changes. See
examples/crazy-redraw.php for an example (#43) - Added tests for child menu style inheritance (#44)
- Add getter getItems() to get all items from the menu (#46)
- Add method removeItem(ItemInterface $item) to remove an item from the menu (#46)
- Ability to toggle item extra while the menu is open - see examples/toggle-item-extra.php (#46)
- Added dialogues flash and confirm - they both display some text on top of the menu, flash is dismissed with
any key press where the confirm requires enter to be pressed on the provided button.
See examples/confirm.php and examples/flash.php (#49)