sruti / covid19-riskfactors-app

App for practitioners showing COVID-19 risk factors for mortality, ARDS, death from ARDS
5 stars 3 forks source link

Find a new way to display labels #30

Closed sylwiavargas closed 4 years ago

sylwiavargas commented 4 years ago

Sruti: "As for the stuff in red, I can add a tooltip so when someone clicks on the ratio label, it shows the ratio and the extra stuff. Or write it underneath the ratio."

-> the solution needs to work well on mobile

sylwiavargas commented 4 years ago

I added touch events in FormRowContainer (https://github.com/sruti/covid19-riskfactors-app/commit/cae85bb2f7c77f691ed84a27f015299bbb73e0f1) that when pressed will show a new label. We can:

I'm leaving the decision what and when should be rendered to you :)

sylwiavargas commented 4 years ago

rowData.ratioTitle transforms into rowData.ratio