You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi, this sounds like a neat idea. However I don't think it needs to be an addition to E.showMenu...

    What about just making it a library: https://github.com/espruino/BangleApps/tree/master/modules

    For instance you could then just do:

    E.showMenu({
       ....
      "Time" : require("timechoosermenu").time({
        value : current_time, 
        onchange : function(newTime) { }
      });
    });
    

    This way it'd end up working without anyone needing a firmware update. And you can prototype it without the library - just put the code in place in the IDE.

    Also worth noting there's this PR currently: https://github.com/espruino/BangleApps/pull/3443

    Which adds a configurable date/time chooser that can be installed. So once you'd done it, you could for instance make a similar app to that which provided a datetimeinput library which used your code, and then people could choose how they wanted to be able to set the date.

About

Avatar for Gordon @Gordon started