Thanks for the suggestion @Gordon !
I have a question with the code format.
If I prototype my custom picker like this :
function showTimePicker(options){ console.log(options); }
Later do I need to call it like this in my menu:
E.showMenu({ 'Time': showTimePicker({ foo : "bar", spam : "eggs" }) });
or like this:
E.showMenu({ 'Time': function () {showTimePicker({ foo : "bar", spam : "eggs" });} });
?
@Pologram started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks for the suggestion @Gordon !
I have a question with the code format.
If I prototype my custom picker like this :
Later do I need to call it like this in my menu:
or like this:
?