.. rst-class:: o-definition-list ``header`` defines custom buttons similar to :ref:`list view buttons ` in the control panel that perform an action/call a model's method. .. code-block:: xml
Does not support any attribute but can have children: .. rst-class:: o-definition-list ``button`` as a :ref:`list view button ` which accepts an extra attribute when placed in a `header`: .. rst-class:: o-definition-list ``display`` By default, those buttons are only displayed when some records are selected, and they apply on the selection. When the attribute ``display`` is set to ``always``, the button is available all the time, even if there's no selection.