6. Menu Config - hfjooste/UltimateMenu GitHub Wiki
The menu config file is used to create all the menus in your project. This file should be set inside your project settings. Each entry requires a key. This key should be unique across all your menus and is used when setting up navigation between menus. The following properties can be changed for each menu:
- Items: The list of menu items displayed in this menu
- Menu Type: The menu type to use (this is used when extracting your appearance data assets from the theme file)
- Override Appearance: You can specify menu appearance data asset if you prefer to override the values set in the theme for this specific menu type (optional)
- Override Behaviour: You can specify custom behaviour for your menu here if you prefer to override the values set in the theme for this specific menu type
- Back Callback: The type of callback that should be used when navigating back while this menu is active
When adding an item to the list, you are required to specify the type of widget and the element type. Depending on the element type, additional details might be required (like an Image Appearance when adding an image or text when adding a button). You can also use the Custom
element type if you want to handle all the initialization yourself. The following types are currently supported:
- Custom
- Button
- Image
- Text