We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are various typos in your README. Here's the fixed file:
A Streamlit component to provide sortable list. You can sort the list of strings on the UI as follows.
$ pip install streamlit-sortables
Call sorted_items method with a list of string. Return value is the sorted items.
sorted_items
import streamlit as st from streamlit_sortables import sort_items original_items = ['A', 'B', 'C'] sorted_items = sort_items(original_items) st.write(f'original_items: {original_items}') st.write(f'sorted_items: {sorted_items}')
You can pass list of dicts with multi_containers=True.
multi_containers=True
import streamlit as st from streamlit_sortables import sort_items original_items = [ {'header': 'first container', 'items': ['A', 'B', 'C']}, {'header': 'second container', 'items': ['D', 'E', 'F']} ] sorted_items = sort_items(original_items, multi_containers=True) st.write(f'original_items: {original_items}') st.write(f'sorted_items: {sorted_items}')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There are various typos in your README. Here's the fixed file:
Streamlit Sortables
A Streamlit component to provide sortable list.
You can sort the list of strings on the UI as follows.
streamlit-sortables.mp4
Installation
Usage
Call
sorted_items
method with a list of string. Return value is the sorted items.You can pass list of dicts with
multi_containers=True
.The text was updated successfully, but these errors were encountered: