Arrange Components in a Template
This guide addresses how to arrange components in a template layout.
The default templates that are provided with Panel define four content areas on the page, which can be populated as desired: header
, sidebar
, main
, and modal
(a dialog box/popup window).
Let's create a simple app and place components in the header
, sidebar
, and main
areas (see the dedicated guide on the modal
). We'll first save this script below into a file called app.py
:
:::{card} app.py
:::
Now, we can activate this app on the command line:
Related Resources
See How-to > Apply Templates > Toggle Modal for a dedicated guide to toggling the modal.
See How-to > Apply Templates > Set a Template for alternate approaches to set a template.
Read Explanation > Templates for explanation.