# Dash : FlexLayout Component

**URL:** <https://community.plotly.com/t/dash-flexlayout-component/79712>\
**Category:** Dash Python\
**Created:** [October 30, 2023, 9:50am UTC](https://community.plotly.com/t/dash-flexlayout-component/79712 "2023-10-30T09:50:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![popo](https://avatars.discourse-cdn.com/v4/letter/p/5f9b8f/32.png) [@popo](https://community.plotly.com/u/popo)\
**Post date:** [October 30, 2023, 9:50am UTC](https://community.plotly.com/t/dash-flexlayout-component/79712/1 "2023-10-30T09:50:56Z")

</div>

Hi everyone,

Continued from : [POC: Drag, Drop, Resize, Stack Dash layout](https://community.plotly.com/t/poc-drag-drop-resize-stack-dash-layout/63776)

Dash really needs such a feature.  
I kept on using dash-lumino for a while now, waiting for a descent alternative. GoldenLayout is probably not going to be implemented in Dash.  
Dash-FlexLayout seems to be the better solution of everything that is available. So big props to @benn0 and @davidpsq for their work on this component.

I `pip install dash_flexlayout` and ran the usage stuff.

- [usage.py](https://github.com/bennyweise/dash-flexlayout/blob/main/usage.py) works fine
- [usage\_dash\_header.py](https://github.com/bennyweise/dash-flexlayout/blob/main/usage_dash_header.py) throws errors… It would be mighty fine to be able to tailor the headers to one’s needs.
- [usage\_drag\_drop.py](https://github.com/bennyweise/dash-flexlayout/tree/feature/drag-for-new-tab)  
I found it in the [feature/drag-for-new-tab](https://github.com/bennyweise/dash-flexlayout/tree/feature/drag-for-new-tab) branch but I can’t get it running…

Is it possible to add a working example that includes those features?  
It would also be nice to include:

- save/load buttons to showcase how to use callbacks to save/load layout models.
- Theming

Considering the [FlexLayout React component Demo](https://rawgit.com/caplin/FlexLayout/demos/demos/v0.7/demo/index.html), you guys are almost there

---

<div class="post-metadata">

**Author:** ![sirdinkus](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@sirdinkus](https://community.plotly.com/u/sirdinkus)\
**Post date:** [December 14, 2023, 12:04pm UTC](https://community.plotly.com/t/dash-flexlayout-component/79712/2 "2023-12-14T12:04:56Z")

</div>

This component is actually lovely. @popo did you ever manage to get it working with styling or custom CSS colors? I would totally use this if not for the forced white theme.

---

<div class="post-metadata">

**Author:** ![PipInstallPython](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/pipinstallpython/32/34539_2.png) [@PipInstallPython](https://community.plotly.com/u/PipInstallPython)\
**Post date:** [October 17, 2024, 3:31am UTC](https://community.plotly.com/t/dash-flexlayout-component/79712/3 "2024-10-17T03:31:57Z")

</div>

I built out something similar haven’t gotten around to proper documentation but it has a dark theme:

```auto
from dash_mosaic import DashMosaic

initial_layout = {
    'direction': 'row',
    'first': 1,
    'second': {
        'direction': 'column',
        'first': 2,
        'second': 3,
        'splitPercentage': 60,
    },
    'splitPercentage': 60,
}

tile_content = {
        1: html.Div(),
        2: html.Div(),
        3: html.Div()
    }

DashMosaic(
            id='mosaic',
            layout=initial_layout,
            theme='Blueprint Dark',
            tileContent=tile_content,
            style={'height': '100vh'},
            windowTitles={1: "Panorama", 2: "Map", 3: "Game Controls"},
            showSplitButton=False,
            showExpandButton=True,
            showRemoveButton=False,
            showNavbar=False
        )

```

Have a demo you could play with up on my dash geo guesser game: [GEO🗺️Index](https://dash.geomapindex.com/geo_guess?game_id=2)

But outside of that, `pip install dash_flexlayout` is a gem shocked i just found this.
