2022-04-21 19:24:19 +02:00
# Panel API
```{eval-rst}
.. module:: wagtail.admin.panels
2022-06-17 16:25:59 +02:00
```
2022-04-21 19:24:19 +02:00
2023-06-18 12:08:33 +02:00
This document describes the reference API for the base `Panel` and the `BoundPanel` classes that are used to render Wagtail's panels. For available panel types and how to use them, see [](editing_api).
2023-04-06 14:40:02 +02:00
2022-06-17 16:25:59 +02:00
## `Panel`
2022-04-21 19:24:19 +02:00
2022-06-17 16:25:59 +02:00
```{eval-rst}
2022-04-21 19:24:19 +02:00
.. autoclass:: Panel
.. automethod:: bind_to_model
.. automethod:: on_model_bound
.. automethod:: clone
.. automethod:: clone_kwargs
.. automethod:: get_form_options
.. automethod:: get_form_class
.. automethod:: get_bound_panel
2022-04-02 02:42:40 +02:00
.. autoproperty:: clean_name
2022-06-17 16:25:59 +02:00
```
2022-04-21 19:24:19 +02:00
2022-06-17 16:25:59 +02:00
## `BoundPanel`
```{eval-rst}
2022-04-21 19:24:19 +02:00
.. autoclass:: wagtail.admin.panels.Panel.BoundPanel
2022-04-02 02:42:40 +02:00
In addition to the standard template component functionality (see :ref:`creating_template_components`), this provides the following attributes and methods:
2022-04-21 19:24:19 +02:00
2022-04-02 02:42:40 +02:00
.. autoattribute:: panel
.. autoattribute:: instance
.. autoattribute:: request
.. autoattribute:: form
.. autoattribute:: prefix
2022-04-21 19:24:19 +02:00
.. automethod:: id_for_label
.. automethod:: is_shown
```