pjayathissa / cozie-covid

the cozie-covid application based off cozie
https://www.cozie.app/
0 stars 0 forks source link

Allows a screen to have a numerical input to input temperature #5

Open pjayathissa opened 4 years ago

pjayathissa commented 4 years ago

https://community.fitbit.com/t5/SDK-Development/Data-input-like-in-Timer-app/m-p/2510396#M2886

pjayathissa commented 4 years ago

After building the .gui file

in showFace()in app/index.js you would have a boolean expression

if (covidFlow[currentView].type === "numerical") {
    allViews.map((v) => {
        v.style.display = "none";
    });
    numericalInput.style.display = "inline";
}

And then you will need to modify the code above in button.obj.addEventListener("click", () => { so that it can map the output to feedbackData.