mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-29 04:10:30 +00:00
Update register_page_listing_more_buttons example
Use Button instead of PageListingButton in **register_page_listing_more_buttons** section.
This commit is contained in:
parent
5c29f37632
commit
e20fbcc3cd
1 changed files with 3 additions and 3 deletions
|
|
@ -719,13 +719,13 @@ Page explorer
|
|||
|
||||
@hooks.register('register_page_listing_more_buttons')
|
||||
def page_listing_more_buttons(page, page_perms, is_parent=False):
|
||||
yield wagtailadmin_widgets.PageListingButton(
|
||||
yield wagtailadmin_widgets.Button(
|
||||
'A dropdown button',
|
||||
'/goes/to/a/url/',
|
||||
priority=10
|
||||
priority=60
|
||||
)
|
||||
|
||||
The ``priority`` argument controls the order the buttons are displayed in the dropdown. Buttons are ordered from low to high priority, so a button with ``priority=10`` will be displayed before a button with ``priority=20``.
|
||||
The ``priority`` argument controls the order the buttons are displayed in the dropdown. Buttons are ordered from low to high priority, so a button with ``priority=10`` will be displayed before a button with ``priority=60``.
|
||||
|
||||
|
||||
Buttons with dropdown lists
|
||||
|
|
|
|||
Loading…
Reference in a new issue