Provides a draggable and resizable grid for Panel.
Project description
panel-tiles
A draggable, resizable grid layout for Panel applications (Muuri + interact.js).
Installation
pip install panel-tiles
Quick Start
from panel_tiles import TileGrid
...
grid = TileGrid(
objects=[
revenue_ind,
growth_ind,
users_ind,
retention_ind,
pn.pane.Bokeh(line_fig),
pn.pane.Bokeh(bar_fig),
table,
],
layout=[
{"width": 25, "height": 100, "visible": True},
{"width": 25, "height": 100, "visible": True},
{"width": 25, "height": 100, "visible": True},
{"width": 25, "height": 100, "visible": True},
{"width": 50, "height": 300, "visible": True},
{"width": 50, "height": 300, "visible": True},
{"width": 100, "height": 250, "visible": True},
],
sizing_mode="stretch_width",
height=750,
)
pmui.Page(main=[grid], title="panel-tiles").servable()
Features
- Drag-and-drop tile reordering
- Resize tiles from the corner handle
- Configurable layout with percentage widths and pixel heights
- Close buttons with hide or remove behavior
- Persist user layouts to localStorage
- Read-only mode for fixed dashboards
- Dynamic add/remove of tiles at runtime
Development
Managed with pixi.
git clone https://github.com/panel-extensions/panel-tiles.git
cd panel-tiles
pixi run postinstall
pixi run compile
pixi run test
UI tests:
pixi run -e test-ui test-ui
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file panel_tiles-0.1.0b2.tar.gz.
File metadata
- Download URL: panel_tiles-0.1.0b2.tar.gz
- Upload date:
- Size: 204.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfed652f1923d482e3dd12451c9b3bc5fd5ecb3c240ad071f4dbf98c4d1a1138
|
|
| MD5 |
b3fef91f2d470a1b0232dfc3ba5c7afd
|
|
| BLAKE2b-256 |
65a403a3ac0bc9b379e1c410ba10e96c3d6868c6de8e8846c27c6c1699c02cc7
|
Provenance
The following attestation bundles were made for panel_tiles-0.1.0b2.tar.gz:
Publisher:
build.yml on panel-extensions/panel-tiles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
panel_tiles-0.1.0b2.tar.gz -
Subject digest:
bfed652f1923d482e3dd12451c9b3bc5fd5ecb3c240ad071f4dbf98c4d1a1138 - Sigstore transparency entry: 1721235104
- Sigstore integration time:
-
Permalink:
panel-extensions/panel-tiles@b5e9332f3436d169f700ccf22d3beac091e6e408 -
Branch / Tag:
refs/tags/v0.1.0b2 - Owner: https://github.com/panel-extensions
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@b5e9332f3436d169f700ccf22d3beac091e6e408 -
Trigger Event:
push
-
Statement type:
File details
Details for the file panel_tiles-0.1.0b2-py3-none-any.whl.
File metadata
- Download URL: panel_tiles-0.1.0b2-py3-none-any.whl
- Upload date:
- Size: 68.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a5396f53525a9c8fe7c93daf3c57b912e3ff8255cb4a731522c90fe1475a7cc
|
|
| MD5 |
10cf9fbf03b5577d2f3c9b409e89c80b
|
|
| BLAKE2b-256 |
a6ff5dc39a2db6f9e0073a56ce4df2e70e4dc3cf774adfeffdd0087e58fc607a
|
Provenance
The following attestation bundles were made for panel_tiles-0.1.0b2-py3-none-any.whl:
Publisher:
build.yml on panel-extensions/panel-tiles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
panel_tiles-0.1.0b2-py3-none-any.whl -
Subject digest:
6a5396f53525a9c8fe7c93daf3c57b912e3ff8255cb4a731522c90fe1475a7cc - Sigstore transparency entry: 1721235187
- Sigstore integration time:
-
Permalink:
panel-extensions/panel-tiles@b5e9332f3436d169f700ccf22d3beac091e6e408 -
Branch / Tag:
refs/tags/v0.1.0b2 - Owner: https://github.com/panel-extensions
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@b5e9332f3436d169f700ccf22d3beac091e6e408 -
Trigger Event:
push
-
Statement type: