# Sidebar Configuration

In Crema, Sidebar menu has 3 different components as below .

1\. Menu Group

2\. Collapsible Menu

3\. Menu Item

Any Navigation Menu Item that is not associated with any group of navigations and does not have its children navigations is considered to be Individual navigation(Menu Item).

![](/files/LT201A4tidr5VQxHzqRS)

The Code structure of the Sidebar(Navigation Menu) as below

```
    id: 'dashboards',                          // Id of the Menu Group
    title: 'Dashboards',                       // Title of the Menu Group
    messageId: 'sidebar.app.dashboard',        // Localization id of the Menu Group
    type: 'group',  group/collapse/item        // Type of menu of the Menu Group
    permittedRole: RoutePermittedRole.admin,   // Allowed to visible User Role
    url: '/app/my-profile'                     // path of the menu navigation
    children: []                               // children of the Menu Group
```

In above  structure we can make any type of the menu by changing the type of object. It could be a group/collapse/item.

| Name          | Type                                                                 | Description                                                                          |
| ------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| id            | string                                                               | Id of the menu                                                                       |
| title         | string                                                               | Title of the menu                                                                    |
| type          | <p>group</p><p>collapse</p><p>item</p>                               | Type of menu of the Menu Group                                                       |
| permittedRole | <p>RoutePermittedRole.admin</p><p></p><p>RoutePermittedRole.user</p> | <p>Allowed to visible User Role</p><p>by default it visible to all type of users</p> |
| url           | string                                                               | Path for the menu navigation                                                         |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cremawork.com/v-3/mui/sidebar-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
