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, width="100%")
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-39-0.0.1.tar.gz (673.5 kB 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_39-0.0.1-py3-none-any.whl (680.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamlit-draggable-list-39-0.0.1.tar.gz
Algorithm Hash digest
SHA256 edb401b62fc3c71dd722efae718ff588ef371845669a194ec46e2cd1b85d2f1f
MD5 fee2b7b072b15d45d010574c90b830ad
BLAKE2b-256 f0fc5ca5c12cb1d1e9010ea5421f6373fd4db1c74384f9fb9047c69ab5a48252

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_draggable_list_39-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b46813aa642c72bf5cfcaf0088efc7d190a06e91a4e22d54ce71ce5867a53a6
MD5 3cf76a72423dfcc9baab67debddda17b
BLAKE2b-256 d667f803fb1cd4547b68a60a729329c4bd3d07e0c662aef994a44f9a7517a41a

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