Skip to content

Q: How to make a resizeable sidebar with panel Page component? #470

@bakkiaraj

Description

@bakkiaraj

Hi,

I would like to give control to user of my app to resize the width of sidebar.

import panel_material_ui as pmui
...
 app_laypout_templ = pmui.Page(
            title=f"Metadata DB Visualizer",
            busy_indicator="circular",
            main=[main_contents],
            sidebar_width=500,
            sidebar=[
                sidebar_section,
            ],
            sidebar_variant="persistent",
            sidebar_open=self.param.sidebar_open_param, # Use the param to make it reactive
            theme_toggle=False,
        )

How shall I make the sidebar width resizable with default width is 500?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions