Question on style={'position': 'fixed'} as we scroll down

Hello Panel Community,

I am a new Panel user and trying hands on to create a POC for a dashboard use case.

There are inputs section to the left of the dashboard (as shown in image below) which I wanted to be static/fixed even when one scrolls down the webpage/dashboard.

I have tried using style={‘position’: ‘fixed’} as shown in the part of the code block below.

main=[pn.Column(
    pn.Row(
        pn.Column(
            welcome_heading,
            #holistic_view_heading,
            #select_site_heading,
            dropdown,
            start_date_picker,
            end_date_picker,
            start_date_picker,
            end_date_picker,
            message,
            quick_links,
            button,
            style={'position': 'fixed'}
        ),

My intended functionality is not working, can anyone suggest any alternative method or point out my mistake?

Thanks.

Hi @venv,

Just going by the picture those boxes might work well being part of the sidebar that shut or not present?

Thanks @carl for pointing out, I have used it as sidebar and it works just fine :slight_smile:

1 Like