Search code examples
python-3.xbootstrap-modalplotly-dash

How to create a draggable modal in Dash python?


I want to create a modal in plotly-Dash python. I can create it with Modal components of bootstrap Dash. The problems are:

1- I couldn't drag the modal.

2- I couldn't interact with the back of modal.

Is there any way to solve these issues?

Are there another component that i can use it instead of Modal component?


Solution

  • You can create modal just with HTML and CSS in your Dash app by importing the module dash_html_components, the step-by-step code of how the modal will be made can be better explained here.