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

Document icon_name and classname for register_page_action_menu_item

This commit is contained in:
Matt Westcott 2020-07-17 17:58:00 +01:00 committed by Matt Westcott
parent 310ea2af35
commit c8a8689cee

View File

@ -589,6 +589,8 @@ Hooks for customising the way users are directed through the process of creating
:label: the displayed text of the menu item
:get_url: a method which returns a URL for the menu item to link to; by default, returns ``None`` which causes the menu item to behave as a form submit button instead
:name: value of the ``name`` attribute of the submit button, if no URL is specified
:icon_name: icon to display against the menu item
:classname: a ``class`` attribute value to add to the button element
:is_shown: a method which returns a boolean indicating whether the menu item should be shown; by default, true except when editing a locked page
:template: path to a template to render to produce the menu item HTML
:get_context: a method that returns a context dictionary to pass to the template