# UserPopup

`UserPopup`s are used to display a popup relative to a target control.

{% hint style="success" %}
Show the popup by calling the `ShowPopup` method with a target control.
{% endhint %}

{% hint style="info" %}
For a full list of properties, methods and events see the [API documentation.](http://docs.wisej.com/api)
{% endhint %}

## Features

### Alignment

The `UserPopup` can be shown anywhere in relation to the popup's target control.

* `TopLeft`: The popup is shown above the opener aligned to the left edge.
* `TopCenter`: The popup is shown above the opener and horizontally centered.
* `TopRight`: The popup is shown above the opener aligned to the right edge.
* `BottomLeft`: The popup is shown below the opener aligned to the left edge.
* `BottomCenter`: The popup is shown below the opener and horizontally centered.

![Popup Alignment - Top and Bottom](/files/-Mj66RvAe_Jw3d7lVWAl)

* `BottomRight`: The popup is shown below the opener aligned to the right edge.
* `LeftTop`: The popup is shown to the left of the opener aligned to the top edge.
* `LeftMiddle`: The popup is shown to the left of the opener and vertically centered.

![Popup Alignment - Left Side](/files/-Mj66_Crafg4G9evrnG6)

* `LeftBottom`: The popup is shown to the left of the opener aligned to the bottom edge.
* `RightTop`: The popup is shown to the right of the opener aligned to the top edge.

![Popup Alignment - Right Side](/files/-Mj66qVDCK7xm8UFHZ9o)

* `RightMiddle`: The popup is shown to the right of the opener and vertically centered.
* `RightBottom`: The popup is shown to the right of the opener aligned to the bottom edge.

### Full Customization

The `UserPopup` is fully customizable. Any kind of control can be added to the container.

![UserPopup Customization Example](/files/-Mj65Izqy-lAHJvElRVt)

## Advanced

### JavaScript Widget <a href="#javascript-widget" id="javascript-widget"></a>

| Item             | Description                                                                                                         |
| ---------------- | ------------------------------------------------------------------------------------------------------------------- |
| Class name       | "wisej.web.UserPopup"                                                                                               |
| Theme appearance | "userpopup", see [Themes](https://docs.wisej.com/theme-builder/theme-elements/elements).                            |
| Child components | "pane" is the container. See [JavaScript](/docs/concepts/javascript-object-model.md).                               |
| Source code      | [https://github.com/iceteagroup/wisej-js](https://github.com/iceteagroup/wisej-js/blob/master/wisej.web.TextBox.js) |


---

# 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.wisej.com/docs/controls/containers/userpopup.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.
