You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user change the selection, e.g. 5, 6, 9, the defaultValue gets persisted to localstorage. The next time user opens the report, it will select 5, 6, 9 instead of 1, 2, 5.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
An option to maintain session preferences by saving input selections as default values in localStorage.
What problem would this solve?
The report page will preserve filters, allowing users to view only the data relevant to them
How should it work?
Example:
<Dropdown
data={product_list}
name=product_dropdown
value=product_id
label=product_name
title="Select a Product"
multiple=true
defaultValue={[1, 2, 5]}
/>
When user change the selection, e.g. 5, 6, 9, the defaultValue gets persisted to localstorage. The next time user opens the report, it will select 5, 6, 9 instead of 1, 2, 5.
Beta Was this translation helpful? Give feedback.
All reactions