Kullanıcı Kılavuzu

Get All Menu Items

Get All Menu Items

Get All Menu Items action allows you to collect all menu items defined in your application on the Kuika platform. With this action, you can view the entire menu structure in the system regardless of user permissions, list menu items, and use this data in management panels. Menu items are defined using the Menu element in the UI Design module; for each menu item, you can enter a label, the screen to which the user will be redirected (toScreen), and an optional icon. The menu structure can also be organised hierarchically with submenus as needed. When the Get All Menu Items action is added, it returns all menu items in JSON format when executed, and this data can be used in components such as tables or lists within the application.

Technical Features

  • Displaying Menu Items: You can list all menu items defined in the application and view the menu structure in its entirety.
  • Access and Editing: You can perform detailed analyses on menu items and rearrange them if necessary.
  • Navigation Management: You can effectively manage the navigation structure of the application and improve the user experience.
  • Web and Mobile Compatibility: The Get All Menu Items action works seamlessly on both web and mobile applications.

Get All Menu Items Action Application Steps

  1. Log in to the Kuika platform and open the project you are working on.
  2. Go to the UI Design module and open the Properties panel on the right panel.
  1. From the + ADD ACTION menu, add the Navigation > Get All Menu Items action according to the trigger event you want (Initial Actions, OnClick, OnBlur, etc.).
  2. This action retrieves all menu items in the system and allows you to list them. You can retrieve menu items directly without any parameter configuration.

Use Case: Viewing and Managing Menu Items

In a management panel, the Get All Menu Items action is used to allow the administrator to view all menu items in the application and make changes as needed. This action can be triggered by a button to allow the administrator to review menu structures and manage user menu access.

Adding the List Menu Items Action to the Management Panel

  1. Enter the UI Design module and drag and drop a Button element from the Elements panel on the left side.
  2. In the Properties panel, enter a phrase such as ‘View Menu Items’ or ‘Edit Menu’ in the Label section of the button.
  3. Select the relevant button and add the OnClick → Navigation → Get All Menu Items action from the + ADD ACTION menu.

Configuring the Get All Menu Items Action

  1. Parameters: This action does not require parameter configuration to retrieve all menu items collectively. All existing menu items will be returned as a list.
  2. Result: When the button is clicked, all menu items will be displayed and can be edited as needed.

With this configuration, you can view all menu items and make the necessary adjustments to improve the navigation structure of your application. When the Get All Menu Items action is executed, all menu options defined in the system will be displayed.

Get All Menu Items Action Advanced Customisations

  • Dynamic Menu Editing: You can dynamically determine menu items and customise the menu options available to users according to their needs.
  • Menu Customisation for Different Permissions: You can determine which menu items will be displayed based on the user role.
  • Data-Linked Menu Items: By linking menu items to specific data, you can display only menu items based on valid data. 

Technical Risks

  • Incorrect Menu Data: Ensure that the menu item data obtained with the Get All Menu Items action is correct and up to date. Data inconsistencies may occur when menu items are dynamically added or updated.
  • Access Permissions: To ensure that users only have access to menu items they are authorised to view, properly configure the relationship between user permissions and menu items.
  • Synchronisation Issues: Changes to menu items may experience delays when synchronised within the application. Ensure that the connections between menus and content are configured correctly.

The Get All Menu Items action allows you to efficiently view and manage the menu structure of your application. This action is critical in the management panel and user experience improvement processes. You can easily list and edit menu items and create a more accessible and optimised navigation structure for users.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar