BattMoTeam / BattMo-gui

BattMo GUI development
MIT License
4 stars 0 forks source link

'Define parameters' page structure #24

Closed LorenaH84 closed 7 months ago

LorenaH84 commented 1 year ago

An issue to discuss different ways of structuring the template and user-defined parameter values at the 'Define parameters' page.

Wanted features:

  1. Page remembers user-defined values after switching to other pages.
  2. After the users defined their own parameter values, the template value, or the default value, should be retrievable again.

Ideas:

Feature 1: a. Use st.session_state.items() b. Use st.cache

Feature 2: a. Selectbox for each individual parameter with the options: 'template1', 'template2', 'User Defined'. b. Selectbox for each individual parameter with the options: 'template1', 'template2'. Plus a button to set all parameters back to default. c. Only one Selectbox with the options: 'template1', 'template2', 'User Defined'. d. Only one Selectbox with the options: 'template1', 'template2'. Plus a button to set all parameters back to default.