GeezerVison is showing flexlayout.2plot.dev โ flexlayout-dash โ resizable panel layouts for Dash ยท llms.txt
flexlayout-dash โ resizable panel layouts for Dash
flexlayout-dash โ IDE-style dockable, resizable and floatable window panels for Plotly Dash. Wraps FlexLayout-React with portal-based rendering, so drag-and-drop tabs, split panes, collapsible edge borders and pop-out windows all keep ordinary Dash callbacks working. By Pip Install Python.
IDE-style dockable, resizable, and floatable window panels for Plotly Dash.
flexlayout-dash wraps FlexLayout-React to give your Dash apps drag-and-drop tabs, splittable panes, collapsible border sidebars, and pop-out windows โ with seamless Dash Mantine Components light/dark theming and full callback support via portal-based rendering.
Drag a tab onto another panel, or onto an edge, and the dock rearranges. Nothing re-mounts, so callbacks inside a panel keep running.
# File: docs/home/example.py
"""Home-page demo: a three-panel dock with a collapsible left border.
Deliberately the shape a reader recognises from an editor โ a sidebar, a main
area, and a console underneath โ so the first thing on the page is the thing the
package does. Every panel is draggable; the left border collapses.
"""
import dash_mantine_components as dmc
from dash import html
import flexlayout_dash as dfl
model = {
"global": {
"tabEnableClose": False,
"tabEnableFloat": True,
# The border starts open so the sidebar is visible without a click.
"borderAutoSelectTabWhenOpen": True,
},
"borders": [
{
"type": "border",
"location": "left",
"size": 200,
"selected": 0,
"children": [{"type": "tab", "name": "Explorer", "id": "home-explorer"}],
}
],
"layout": {
"type": "row",
"weight": 100,
"children": [
{
"type": "column",
"weight": 70,
"children": [
{
"type": "tabset",
"weight": 65,
"children": [
{"type": "tab", "name": "app.py", "id": "home-editor"},
{"type": "tab", "name": "README.md", "id": "home-readme"},
],
},
{
"type": "tabset",
"weight": 35,
"children": [
{"type": "tab", "name": "Console", "id": "home-console"}
],
},
],
},
{
"type": "tabset",
"weight": 30,
"children": [{"type": "tab", "name": "Preview", "id": "home-preview"}],
},
],
},
}
def _panel(*children):
return dmc.Box(children, p="md", style={"height": "100%", "overflow": "auto"})
def _code(text):
return dmc.Code(text, block=True, style={"fontSize": "0.8rem"})
component = dfl.DashFlexLayout(
id="home-dock",
model=model,
useStateForModel=True,
# The dock has no intrinsic height โ this is required, and it goes on the
# component itself, never on a wrapper.
style={"height": "460px"},
children=[
dfl.Tab(
id="home-explorer",
children=_panel(
dmc.Text("EXPLORER", size="xs", fw=700, c="dimmed", mb="xs"),
dmc.Stack(
[
dmc.Text("๐ src", size="sm"),
dmc.Text("๐ app.py", size="sm", ml="md"),
dmc.Text("๐ README.md", size="sm", ml="md"),
],
gap=4,
),
dmc.Text(
"Collapse this sidebar with the border tab on the left edge.",
size="xs", c="dimmed", mt="md",
),
),
),
dfl.Tab(
id="home-editor",
children=_panel(
_code(
"import flexlayout_dash as dfl\n\n"
"dfl.DashFlexLayout(\n"
' id="dock",\n'
" model=model,\n"
' style={"height": "600px"},\n'
" children=[dfl.Tab(id=..., children=...)],\n"
")"
)
),
),
dfl.Tab(
id="home-readme",
children=_panel(
dmc.Text("Two tabs share this tabset.", size="sm"),
dmc.Text(
"Drag either one onto another panel โ or onto an edge โ and the "
"dock re-splits around it.",
size="sm", c="dimmed", mt="xs",
),
),
),
dfl.Tab(
id="home-console",
children=_panel(
_code("$ pip install flexlayout-dash\nSuccessfully installed flexlayout-dash")
),
),
dfl.Tab(
id="home-preview",
children=_panel(
dmc.Text("Preview", fw=600, mb="xs"),
dmc.Text(
"Each panel is an ordinary Dash subtree rendered through a React "
"portal, so callbacks inside it keep firing โ even while the tab "
"is hidden behind another.",
size="sm",
),
html.Div(
dmc.Badge("MIT ยท unlimited tabs", variant="light"),
style={"marginTop": "12px"},
),
),
),
],
)
Install
pip install flexlayout-dash
import flexlayout_dash as dfl
The Python import name is flexlayout_dash (as of 1.1.0); the PyPI package is flexlayout-dash.
Documentation
Why flexlayout-dash?
- Dockable & draggable โ rearrange tabs between tabsets by dragging.
- Resizable & floatable โ drag splitters; pop tabs out into floating windows.
- Border sidebars โ VS Code-style collapsible panels on the edges.
- Theme-aware โ follows
data-mantine-color-scheme automatically.
- Callback-friendly โ portal-based rendering keeps tab content mounted so your
Dash callbacks keep working.
- One build, no tiers โ no tab limit, no licence key, MIT licensed.
Source: /
Other sizes of this document
- /llms-small.txt: compact briefing โ start here if context is tight. (3.6 KB, ~917 tok)
- /llms.txt: this document โ the index you are reading. (14.3 KB, ~3.7k tok)
- /llms-full.txt: every page's prose in one document โ 11 pages. (54.0 KB, ~13.8k tok)
Access policy
- Terms: these documents are free to fetch. A free account unlocks any gated document.
- Identity: agents may present a key by appending
?key=<value> to any document URL. Get one: https://2plot.ai
- Rate: prefer ONE
/llms-full.txt fetch over N per-page fetches. On 429, honour Retry-After and back off exponentially.
- Coordination: start at https://2plot.dev/llms.txt โ one index enumerates every site; do not rediscover the network by crawling it.
- Crawler policy (mirrors /robots.txt): allowed: GPTBot, ClaudeBot, CCBot, Google-Extended, FacebookBot, Omgili, ByteSpider, Amazonbot, Applebot-Extended, meta-externalagent, AI2Bot, Diffbot, Timpibot, ImagesiftBot, ChatGPT-User, Claude-User, Claude-SearchBot, PerplexityBot, OAI-SearchBot, Perplexity-User, Googlebot, Bingbot, Slurp, DuckDuckBot, GoogleOther, Google-InspectionTool, Storebot-Google, AdsBot-Google.
- Accounting: every document read is logged with the requesting vendor (verified against published IP ranges where the operator publishes them). See https://2plot.dev/llms.txt
Pages
Every page in this application. Each has a Markdown version at the llms.txt URL beside it.
- flexlayout-dash โ resizable panel layouts for Dash: flexlayout-dash โ IDE-style dockable, resizable and floatable window panels for Plotly Dash. Wraps FlexLayout-React with portal-based rendering, so drag-and-drop tabs, split panes, collapsible edge borders and pop-out windows all keep ordinary Dash callbacks working. By Pip Install Python.
- Machine-readable: https://flexlayout.2plot.dev/llms.txt (14.3 KB, ~3.7k tok)
- API: Component props reference for flexlayout_dash.
- Machine-readable: https://flexlayout.2plot.dev/api/llms.txt (3.9 KB, ~992 tok)
- Basic Layouts: Rows, columns, nested splits, and multi-tab tabsets.
- Machine-readable: https://flexlayout.2plot.dev/basic/llms.txt (3.2 KB, ~822 tok)
- Borders & Sidebars: Collapsible left, right, and bottom edge panels.
- Machine-readable: https://flexlayout.2plot.dev/borders/llms.txt (3.2 KB, ~811 tok)
- Callbacks: Read layout state and drive content from Dash callbacks.
- Machine-readable: https://flexlayout.2plot.dev/callbacks/llms.txt (3.4 KB, ~858 tok)
- Changelog: Version history of flexlayout-dash, rendered from CHANGELOG.md.
- Machine-readable: https://flexlayout.2plot.dev/changelog/llms.txt (19.2 KB, ~4.9k tok)
- Getting Started: Build your first dockable layout with flexlayout-dash.
- Machine-readable: https://flexlayout.2plot.dev/getting-started/llms.txt (2.9 KB, ~740 tok)
- Privacy: What flexlayout-dash stores about a visit, what it does not store, and where the numbers go โ described from the code that does it.
- Machine-readable: https://flexlayout.2plot.dev/privacy/llms.txt (3.5 KB, ~900 tok)
- Component Reference: Every prop on DashFlexLayout and Tab, plus the model schema.
- Machine-readable: https://flexlayout.2plot.dev/reference/llms.txt (5.2 KB, ~1.3k tok)
- Terms: Terms of use for flexlayout-dash: what this site is, what it is not, and the terms the documentation and its code examples are offered under.
- Machine-readable: https://flexlayout.2plot.dev/terms/llms.txt (2.2 KB, ~558 tok)
- Theming: Automatic Mantine light/dark integration.
- Machine-readable: https://flexlayout.2plot.dev/theming/llms.txt (2.6 KB, ~668 tok)
About The 2plot network
Open-source Dash component libraries by Pip Install Python. Each component has its own documentation site and its own llms.txt; 2plot.dev indexes all of them, and 2plot.ai is the hub.
Network index: https://2plot.dev
Network
Other applications in this network. Same operator; each one serves its own /llms.txt in this format.
Related projects
Projects by the same author on their own domains. Built on the same stack, but not part of the primary network.
External references
Third-party documentation this project depends on or references. Not affiliated โ listed so an agent can follow a dependency directly instead of searching for it.
|