This release is a pre-release and may not be stable for production use.
Dash Drag Grid
Dash Drag Grid is a Dash component library.
A draggable grid based on react-grid-layout and based on the dash_draggable package https://github.com/MehdiChelh/dash-draggable by Mehdi. It extends the initial effort and includes a toolbox to move unneeded children to.
This allows a dynamic dash application with only presenting what's needed.
Installation
The package will be available on PyPI in the future, but for now, you can install it directly from the repo via:
pip install git+https://github.com/Simon-U/dash_drag_grid.git
Get started
You can test examples locally after installation with the usage.py
The package offers two ways to display the draggable grid:
- Standard responsive grid as in the inital package
- A grid with added toolbox
Standard responsive grid
To use the standard grid without toolbox, you can import from dash_drag_grid import ResponsiveGridLayout, DashboardItemResponsive
The ResponsiveGridLayout is the grid which has the draggable children.
ResponsiveGridLayout(
children=[],
)
You can use your components as children, which the grid will nest in a DashboardItemResponsive or you define the DashboardItemResponsive yourself, which provides you more control over the size and initial placement.
Toolbox grid
from dash_drag_grid import ToolBoxGrid, DashboardItemResponsive
The initial setup is the same. Except now, you can also specify whether DashboardItemResponsive should be initial in the toolbox or not.
Documentation
DashboardItemResponsive
- id: The ID used to identify this component in Dash callbacks.
- children: The child or list of children wrapped by the component
- x: The position on the x axis in number of columns (by default, the max is 12).
- y: he position on the y axis (the unit is 30px, by default)
- w: The width of the x axis (default is 6).
- h: The height on the of y axis (default is 4)
- static: If true, equal to
isDraggable: false, isResizable: false. Default is false - isDraggable: If false, will not be draggable. Overrides
static. - isResizable: If false, will not be resizable. Overrides
static. - inToolbox: Is the Item in the toolbox. Default is false and set by the grid. Overwrites the grid default value
- defaultName: The name which will be displayed if the Item is in the toolbox. If non provided, then default is the ID
- toolboxContent: Array of content to display when item is toolbox. It could be an Icon with dash Iconify or text. Overwrides defaultName.
ResponsiveGridLayout:
The documentation of https://dash-draggable.readthedocs.io/en/latest/ with for the ResponsiveGridLayout is still the same. This will be integrated in the future.
ToolBoxGrid:
The parameters provided are the same as for the ResponsiveGridLayout there is one addition:
- defaultInToolbox: The value sets if children, which do not have inToolbox defined, should be in the Toolbox by default.
ToDo and future features
- Extent documentation and examples
- Separate Toolbox and grid to allow separate placement in the DOM
Contributing
See CONTRIBUTING.md
Metadata
Release files for dash-drag-grid 0.9.4.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dash_drag_grid-0.9.4.dev0.tar.gz | 198.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dash_drag_grid-0.9.4.dev0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 402.1 kB
Release files / dash_drag_grid-0.9.4.dev0.tar.gz
| Download URL | dash_drag_grid-0.9.4.dev0.tar.gz |
|---|---|
| Size | 198.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
904ecc5fe1b0ddab185aca8de12042c9acbc0d397d468a71269b34ec27436f85
|
|
BLAKE2b-256 checksum How to use checksums |
d5e917294b2089b4b3cf80871a7476baf2d1d8f67a5bb4cbeaddf967988a530f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / dash_drag_grid-0.9.4.dev0-py3-none-any.whl
| Download URL | dash_drag_grid-0.9.4.dev0-py3-none-any.whl |
|---|---|
| Size | 204.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e11b40ab94c277465a3073e39f86bf0148c8d1e2e478023b3762bce492c4adf
|
|
BLAKE2b-256 checksum How to use checksums |
05ff41effa8d17e20ff0105c9a379443fa8d3e6dedfd2ff602a5fc7b09d14bbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Security for dash-drag-grid 0.9.4.dev0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.