Menus
Last updated
Was this helpful?
Last updated
Was this helpful?
The Menu feature in Servoy is a reusable design-time entity designed to simplify and centralize menu management within applications. By defining a menu once, developers can use it consistently across multiple components that rely on structured navigation. This approach streamlines application development, enhances maintainability, and ensures a uniform user experience.
Menus in Servoy are versatile and promote modular design, making it easy to share or restrict their use across different parts of an application. With its flexible design, the Menu feature integrates seamlessly into the application’s user interface, enabling developers to focus on functionality while maintaining consistent navigation across their solutions.
Consistency: Defining the menu structure once and applying it across multiple components ensures a uniform navigation experience for users.
Efficiency: Reduces the need for repetitive manual configuration, saving development time and minimizing errors.
Maintainability: Centralized menu management simplifies updates and modifications, as changes to the menu structure are automatically reflected across all linked components.
The Servoy Menu feature simplifies navigation by enabling developers to create structured, reusable menus. This guide provides step-by-step instructions to help you efficiently implement and manage menus for a consistent user experience.
In the Solution Explorer, right-click the Menus
node and select Create menu
. This will open the New Menu Wizard.
Enter the name for the Menu, select the desired solution then click on the Finish
button. This will add the new Menu to the menus' list.
Set up the Menu Properties
Set up Menu Items Properties
Assign the Menu to a component.
A complete list of Menu API methods can be found here.
In the component Properties Editor, click the servoyMenu
property to open the Servoy Menu Selection Wizard
Click the name of the desired Servoy Menu
Click OK
(to dismiss the Servoy Menu Chooser). This will assign the selected Servoy Menu to the component