arsentievalex / streamlit-dynamic-filters

Custom component with dynamic multiselect filters for Streamlit
MIT License
68 stars 12 forks source link

added key for elements #11

Closed vikashgraja closed 3 months ago

vikashgraja commented 3 months ago

Added key for each elements in filters so we can use multiple DynamicFilters in one app

Sairam90 commented 3 months ago

This would be a helpful feature as currently if there are more than one filters with the same fieldname on a page; we get a DuplicateWidgetID error.

The filters_name param helps if the same fields are in different pages

Any timelines on when this will be merged ?

vikashgraja commented 3 months ago

Yeah, It will be merged soon

arsentievalex commented 3 months ago

thanks @vikashgraja just merged your commit

Sairam90 commented 3 months ago

Thanks guys! , any idea on when the new version will be available on pypi

arsentievalex commented 2 months ago

@Sairam90 the new version streamlit-dynamic-filters 0.1.7 is on pypi

Sairam90 commented 2 months ago

@arsentievalex Thank you!

Sairam90 commented 2 months ago

Hi @arsentievalex , I am able to download the new version but my script is not able to import any classes from the lib as it's not recognized ex:import streamlit_dynamic_filters or from streamlit_dynamic_filter import DynamicFilters doesnt work

arsentievalex commented 2 months ago

@Sairam90 thanks for the info, there was an issue with naming. it should be fixed in the latest version, pls use: pip install streamlit-dynamic-filters==0.1.9

Sairam90 commented 2 months ago

@arsentievalex Thank you!, works fine now :)