Menu Setup

Overview

The most important thing in a generated application is to allow the user to select and update the tables in the application's database. CodeStencil provides the flexibility to specify what table(s) can be accessed via menus defined by the user and manually create additional menus.

 

 

  1. Menu List - This grid displays the list of all the menu items that will be generated. It consists of table names and other menu items you added manually. Two columns are displayed here: The menu text and the path the menu navigates to when clicked at runtime.
  2. Preview - This button allows you to preview what your generated menu is like in code.

     This preview is for a menu used in a DevExpress Blazor App. It shows the generated code.
  3. Format - This button allows you to format the way the menu will look. See Setup Menu Format
  4. Import - This button allows you to import the table names of the tables defined in your Schema Dictionary. See Import Table Names
  5. Add Menu - This allows you to add a menu manually. for example, you may want to show the menu for login, profile, or any other item that has nothing to do with tables.
  6. Edit Menu - This button lets you update an existing menu.
  7. Delete Menu - This button lets you delete an existing menu.

Implementation

To implement your menu definition in the code generation lifecycle, you must trigger it with the Expander - MENU_ITEMS. This is because CodeStencil generates and stores the menu string/code in this expander on exiting the menu setup form.

This automatically produces this after code generation:

 


Was this article helpful?