CLI Menu v2.0.0 Release Notes
Release Date: 2016-10-27 // over 7 years ago-
[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)
โ Removed