0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/docs/reference/panel_api.md

32 lines
642 B
Markdown
Raw Normal View History

2022-04-21 19:24:19 +02:00
# Panel API
```{eval-rst}
.. module:: wagtail.admin.panels
```
2022-04-21 19:24:19 +02:00
## `Panel`
2022-04-21 19:24:19 +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-21 19:24:19 +02:00
## `BoundPanel`
```{eval-rst}
2022-04-21 19:24:19 +02:00
.. autoclass:: wagtail.admin.panels.Panel.BoundPanel
In addition to the standard template component functionality (see :ref:`creating_template_components`), this provides the following methods:
.. automethod:: id_for_label
.. automethod:: is_shown
```