GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Start at the network index
  • 2plot.ai ๐Ÿš€๐Ÿ” Launched a Federated Network
  • Gifting $1,000 of Claude code

This view

  • Original page
  • New address

GeezerVison is showing flexlayout.2plot.dev โ€” Borders & Sidebars ยท llms.txt

Borders & Sidebars

Collapsible left, right, and bottom edge panels.

Site index: https://flexlayout.2plot.dev/llms.txt โ€” every page on this site, as Markdown. Network index: https://2plot.dev/llms.txt โ€” The 2plot network; start here to discover sibling sites. Sibling sites: 13 more in The 2plot network โ€” listed in the site index above. Sitemap: https://flexlayout.2plot.dev/sitemap.xml


Border panels

Borders are collapsible panels docked to the edges of the layout โ€” think VS Code's Explorer, Search, and Terminal. They live in the top-level borders list, each with a location of "left", "right", or "bottom" (there is no top border).

Border tabs start collapsed; click a tab name on an edge to slide the panel open, and click again to collapse it.

# File: docs/borders/example.py

from dash import html
import flexlayout_dash as dfl

# Borders are collapsible panels docked to the edges. They start collapsed โ€”
# click a border tab name to slide it open.
model = {
    "global": {
        "tabEnableClose": False,
        "tabEnableFloat": True,
        "borderSize": 220,
    },
    "borders": [
        {
            "type": "border",
            "location": "left",
            "size": 220,
            "children": [
                {"type": "tab", "name": "Explorer", "id": "borders-explorer"},
                {"type": "tab", "name": "Search", "id": "borders-search"},
            ],
        },
        {
            "type": "border",
            "location": "right",
            "size": 220,
            "children": [{"type": "tab", "name": "Properties", "id": "borders-props"}],
        },
        {
            "type": "border",
            "location": "bottom",
            "size": 150,
            "children": [{"type": "tab", "name": "Terminal", "id": "borders-terminal"}],
        },
    ],
    "layout": {
        "type": "row",
        "children": [
            {
                "type": "tabset",
                "weight": 100,
                "children": [{"type": "tab", "name": "Editor", "id": "borders-editor"}],
            }
        ],
    },
}


def _panel(text):
    return html.Div(text, style={"padding": "16px"})


component = dfl.DashFlexLayout(
    id="borders-dock",
    model=model,
    useStateForModel=True,
    style={"height": "460px"},
    children=[
        dfl.Tab(id="borders-editor", children=[_panel("Editor (main area). Click Explorer / Search / Properties / Terminal on the edges to open a border panel.")]),
        dfl.Tab(id="borders-explorer", children=[_panel("Explorer โ€” left border.")]),
        dfl.Tab(id="borders-search", children=[_panel("Search โ€” left border.")]),
        dfl.Tab(id="borders-props", children=[_panel("Properties โ€” right border.")]),
        dfl.Tab(id="borders-terminal", children=[_panel("Terminal โ€” bottom border.")]),
    ],
)

Notes

  • size sets the panel's width (left/right) or height (bottom) in pixels.
  • borderSize / borderMinSize in global set defaults across all borders.
  • Each border can hold multiple tabs (the left border above stacks Explorer and Search).

Source: /borders

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.