Git Product home page Git Product logo

cli-menuframework's Introduction

cli-menuframework's People

Contributors

jtucholski avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

cli-menuframework's Issues

Support a Function Reference for Menu Text In AddOptionRange

Rather than having the developers overriding .ToString(), allow them to provide a function reference that returns a string and will be called when rendering each of the items in AddOptionRange.

Leaving it as .ToString() means that an object can only be rendered one way.

Unit Testing Needed for Updates

The framework is missing unit tests (and probably integration tests) to verify that future updates don't introduce breaking changes and functionality works as expected.

A feature for "Menu Selection" mode (Key String vs. Arrow mode)

There should be a configuration option to select a Menu Selection Mode. This is the mode in which the user indicates which option to select from the menu.

  1. MenuSelectionMode.Arrow (currently the only mode we have), in which the user uses arrow keys to navigate the menu and presses enter to select.
  2. MenuSelectionMode.KeyString, in which each option is assigned string as its Key, which is displayed to the user. Then a prompt for Select an option: allows the user to type one of those key values, and press Enter to select.
  • When the Option is added to the menu, there will be a parameter for the KeyString. If that is null, the framework will assign the next available number, starting at 1, to the option. In this way, by setting MenuSelection.KeyString mode but never passing a Key String to AddOption, the menu will be auto-numbered.

Support OnAfterShow

An OnAftereShow option should exist so that developers can display content after the menu options are rendered.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.