nicedouble / StreamlitAntdComponents

A Streamlit component to display Antd-Design
https://nicedouble-streamlitantdcomponentsdemo-app-middmy.streamlit.app/
MIT License
437 stars 29 forks source link

can I set the default value of the pagination bar? #62

Open Ares16x16 opened 4 months ago

Ares16x16 commented 4 months ago

Hi,

Now I am using the pagination inside experimental_dialog. I splited my dataframe into pages and used pagination to handle it, it was fine until I closed the dialog and reopen it again. When I reopen the dialog, the return value of pagination remains unchanged but the pagination bar was set back to page 1.

i.e. Open the dialog and switch to page 3, do nothing and close the dialog, and then open it again, the return value of pagination is still 3 but the pagination icon shows page 1.

Many thanks.