Open mattstauffer opened 2 years ago
@mattstauffer I've looked into the Laravel Console Menu package (source) and the underlying cli-menu
package from php-school (source) and looks like there's no option for pagination/scrolling.
We could, technically, limit the number of items displayed in the menu and add an extra "Show More" option or "Next" that would re-render the menu with more options (then showing "Prev" and "Next" options on subsequent pages). Basically implementing pagination manually on top of this menu package.
I personally find this kind of menu a bit limiting (it makes testing more complicated and I'm not very fond of the looks of it), wouldn't reimplementing this in a regular "choices" menu be a better solution? We could even have interactive autocompletion, like:
https://user-images.githubusercontent.com/1178621/164785821-2fd85e61-cadc-4d05-b540-0da7063bf6b1.mp4
@mattstauffer I've looked into the Laravel Console Menu package (source) and the underlying
cli-menu
package from php-school (source) and looks like there's no option for pagination/scrolling.We could, technically, limit the number of items displayed in the menu and add an extra "Show More" option or "Next" that would re-render the menu with more options (then showing "Prev" and "Next" options on subsequent pages). Basically implementing pagination manually on top of this menu package.
I personally find this kind of menu a bit limiting (it makes testing more complicated and I'm not very fond of the looks of it), wouldn't reimplementing this in a regular "choices" menu be a better solution? We could even have interactive autocompletion, like:
Screen.Recording.2022-04-22.at.17.00.28.mp4
I like that option!
I have implemented this feature as below:
We can divide the service types and containers for each types into two display like this?
After "Database" is selected in the first menu? It shows like this:
The second menu could have back as well, which just shows the first menu (reset)? [Not implemented still]
Let me know if that's good?
I have implemented this feature as below:
We can divide the service types and containers for each types into two display like this?
After "Database" is selected in the first menu? It shows like this:
The second menu could have back as well, which just shows the first menu (reset)? [Not implemented still]
Let me know if that's good?
Anyone came anywhere nearby this? @mattstauffer
I have implemented this feature as below:
We can divide the service types and containers for each types into two display like this?
After "Database" is selected in the first menu? It shows like this:
The second menu could have back as well, which just shows the first menu (reset)? [Not implemented still]
Let me know if that's good?
I like this setup; keeps the list nice and compact.
Let's look into whether the tool we're using to generate these has multi page options?