menu: modifications (#3262)

- remove lot of helper methods
- differentiate class instantiate from config or directly
- don't use 'enable' template rendering when static value is used.
- new element 'disabled'
- other internal adjustments

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
Janar Sööt
2020-12-03 17:46:55 +02:00
committed by GitHub
parent 422386e94c
commit 91de1560a7
2 changed files with 166 additions and 209 deletions

View File

@@ -3212,6 +3212,11 @@ List of actions for menu element:
```
# Common parameters available for all menu config sections.
#[menu __some_list __some_name]
#type: disabled
# Permanently disabled menu element, only required attribute is 'type'.
# Allows you to easily disable/hide existing menu items.
#[menu some_name]
#type:
# One of command, input, list, text: