Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
c9b5ebf
Add theme-aware styling to StreamlitSlickGrid component
kevintcaron Jun 24, 2025
fdd9eb4
Set _RELEASE to False and update version to 0.2.0 in package-lock.json
kevintcaron Jun 24, 2025
0412434
Refactor hover styles for slick rows to use a border highlight instea…
kevintcaron Jun 24, 2025
2e1f675
Adjust row hover effects and improve header styling for theme consist…
kevintcaron Jun 25, 2025
e6bfd70
Implement toggle selection for clicked cells in StreamlitSlickGrid co…
kevintcaron Jun 25, 2025
ea6bec9
Add clear active selection functionality for improved selection styli…
kevintcaron Jun 26, 2025
b59726b
Enable cell Navigation to support Streamlit row selection options in …
kevintcaron Jun 26, 2025
5f17250
Support row selection and cell selection using options.
kevintcaron Jun 26, 2025
787bd6d
Adjust comment
kevintcaron Jun 26, 2025
6ddc66f
Add more descriptive comments and clean up
kevintcaron Jun 26, 2025
28c58ee
Set release flag to True for production deployment
kevintcaron Jun 27, 2025
1606dd7
Fixed issue with Row selection on click exapanding nested rows.
kevintcaron Jul 4, 2025
cee02b9
Set release flag to True for production deployment
kevintcaron Jul 4, 2025
b2f0d28
Set background color for grid-canvas and adding bottom border to slic…
kevintcaron Jul 10, 2025
2784032
Remove unnecessary setTimeout calls in clearActiveClasses and clearSe…
kevintcaron Jul 10, 2025
e3d1e12
Fix click delay class application issue
kevintcaron Jul 10, 2025
c283361
Add build folder for others to use these edits. (Remove build from gi…
kevintcaron Jul 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ __pycache__/
*$py.class

# Distribution / packaging
build/
# build/
dist/
eggs/
.eggs/
Expand Down
27 changes: 16 additions & 11 deletions examples/streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ def mockData(count):
#
# Not all grid options are supported, though!
options = {
#
# Enable cell and row selection visualizations
"enableRowSelection": True, # True allows row selection (enableCellNavigation must also be True)
"enableCellNavigation": True, # True allows cell selection visulization (enableRowSelection must be False for cell selection)
# --
#
# Allow filtering (based on column filter* properties)
"enableFiltering": True,
Expand Down Expand Up @@ -326,19 +331,19 @@ def mockData(count):
}

out = slickgrid(data, columns, options, key="mygrid", on_click="rerun")
st.write(out)

# @st.dialog("Details", width="large")
# def show_dialog(item):
# st.write("Congrats! You clicked on the row below:")
# st.write(item)

@st.dialog("Details", width="large")
def show_dialog(item):
st.write("Congrats! You clicked on the row below:")
st.write(item)

st.write("Here's a random chart for you:")
st.write("")
# st.write("Here's a random chart for you:")
# st.write("")

st.scatter_chart(np.random.randn(100, 5))
# st.scatter_chart(np.random.randn(100, 5))


if out is not None:
row, col = out
show_dialog(data[row])
# if out is not None:
# row, col = out
# show_dialog(data[row])
13 changes: 13 additions & 0 deletions streamlit_slickgrid/frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"files": {
"main.css": "./static/css/main.ba80f74f.css",
"main.js": "./static/js/main.576488e0.js",
"index.html": "./index.html",
"main.ba80f74f.css.map": "./static/css/main.ba80f74f.css.map",
"main.576488e0.js.map": "./static/js/main.576488e0.js.map"
},
"entrypoints": [
"static/css/main.ba80f74f.css",
"static/js/main.576488e0.js"
]
}
Loading