New page_utils api to handle sidebar subitems selection

This commit is contained in:
emanuele-f 2020-01-30 11:52:35 +01:00
parent 6704ae5040
commit 4f6788fb58
73 changed files with 197 additions and 143 deletions

View file

@ -18,6 +18,9 @@ return {
-- before entries with lower sort order.
sort_order = -1,
-- Information about the menu entry, see page_utils.menu_entries
menu_entry = {key = "example_plugin", i18n_title = "Example Page", section = "system_stats"},
-- Conditionally show or hide the menu entry
is_shown = function()
return(true)