Skip to main content

Streamlit component of draggable list

Project description

streamlit-draggable-list

A Streamlit wrapper component on react-smooth-dnd

Exmple

import streamlit as st
from st_draggable_list import DraggableList

st.title("DraggableList")

data = [
    {"id": "oct", "order": 10, "name": "Oct"},
    {"id": "nov", "order": 11, "name": "Nov"},
    {"id": "dec", "order": 12, "name": "Dec"},
    {"id": "jan", "order": 1, "name": "Jan"},
    {"id": "feb", "order": 2, "name": "Feb"},
    {"id": "mar", "order": 3, "name": "Mar"},
    {"id": "apr", "order": 4, "name": "Apr"},
    {"id": "may", "order": 5, "name": "May"},
    {"id": "jun", "order": 6, "name": "Jun"},
    {"id": "jul", "order": 7, "name": "Jul"},
    {"id": "aug", "order": 8, "name": "Aug"},
    {"id": "Sep", "order": 9, "name": "Sep"},
]

slist = DraggableList(data, key="foo")
st.write(slist)

draggable_list

Component value

component_value

Install

pip install streamlit-draggable-list

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-draggable-list-0.0.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_draggable_list-0.0.1-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file streamlit-draggable-list-0.0.1.tar.gz.

File metadata

File hashes

Hashes for streamlit-draggable-list-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4bd2098f7e2667e7c4515a7e54984a49a022aa23647fb75f9e2816fb13311f52
MD5 c2a9e4d83c1101af44bfff6f4dc4b1dd
BLAKE2b-256 3af4aa413c40576a0cc8508fad7817af810199f1ebe00157a4946156c344b6f1

See more details on using hashes here.

File details

Details for the file streamlit_draggable_list-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_draggable_list-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24a52cc31c188ce3bbcb7d0c762087cc08fcf714ec5a7822e60d8c893ae627c0
MD5 fe8b1167903cb495990107c79eb6ff36
BLAKE2b-256 bc8eccd0c5798e6a6860f768380cc74db0945fa6d471013726b86d9c09256e7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page