I have a numerical based menu system not too dissimilar from a phone style menu system e.g "Press 1 for customer service, 2 for sales, 3 for store opening hours", etc. The menu items may or may not have sub menu choices. For example customer service may have 3 choices. The there could sub options from these.
I would like to firstly retain the users current state - our UX allows them to continue where they left off at some later point. I also need to know how to handle either handle presenting them sub menu options or if they select a menu option with the sub options directing them to the content they require.
Our stack is node, express and mongo. I've done some research and from prior experience a state and composite pattern might be the way to go. How might I implement this menu using our stack? Are there any libraries I could leverage?
Aucun commentaire:
Enregistrer un commentaire