# Menubar Item Link

The **`Menubar Item Link`** element is similar to the [Link](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/link) element, but is used inside [Menubar Item](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/menubar-item) elements.

It's important to note that the **`Menubar Item Link`** element cannot be directly accessed in the [Page Element Library](https://docs.zingy.ai/app-editor/page-editor-tour#page-element-library) for drag-and-drop functionality. Instead, you can utilize the following pre-built elements:

* [Menu Item](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/menu-item): This has a [Menubar Item Link](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/menubar-item-link) element, which can be edited and configured.
* [Menubar Popup Menu](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/menubar-popup-menu): This adds a sub-menu to the menubar which can be customized.
* [Menubar Login Info](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/menubar-popup-menu): This adds a widget that shows information about the current logged-in user to your app.

***

## Options

The [Options tab](https://docs.zingy.ai/app-editor/page-element-settings#options-tab) settings for this element are described below:

### `HRef`

Sets the destination URL. The URL can be external to other websites or internal to other pages of your app.&#x20;

{% hint style="info" %}
Using [Page Flow](https://docs.zingy.ai/app-editor/page-flow), you can define custom actions instead of navigating to the URL.
{% endhint %}

### `Target`

Choose whether you want to open the URL in a new tab/page or in the same page.

### `Link Action`

This is an advanced parameter that translates to the [Bootstrap](https://getbootstrap.com/docs/4.6/getting-started/introduction/) **`data-toggle`** attribute. The [Popup Menu Style1](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/popup-menu-style1), [Popup Menu Style2](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/popup-menu-style2)  and [Menubar Popup Menu](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/menubar-popup-menu) elements use this by setting the value to ***`dropdown`***. You can also use this to control a [Collapsible Area](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/collapsible-area) element by setting the value to ***`collapse`***.

### `Action Target`

This is an advanced parameter that translates to the [Bootstrap](https://getbootstrap.com/docs/4.6/getting-started/introduction/) **`data-target`** attribute. The value is set to the Element ID of the element to be controlled. To find the Element ID see [**here**](https://docs.zingy.ai/app-editor/page-element-settings#advanced-tab).

{% hint style="info" %}
The Element ID needs to be prefixed with a # character. This is also known as ID selector syntax. For more information click [here](https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors).
{% endhint %}

### `Popup Menu Icon`

Enable this if you want a :arrow\_down\_small:arrow to appear next to the link to indicate that it will invoke a popup menu. The [Popup Menu Style1](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/popup-menu-style1), [Popup Menu Style2](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/popup-menu-style2)  and [Menubar Popup Menu](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/menubar-popup-menu) elements turn this setting on.


---

# 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.zingy.ai/app-editor/page-editor/built-in-elements/menubar-item-link.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.
