# 사용자 컨트롤 이벤트

사용자컨트롤에 대한 이벤트를 생성한 후 동일한 구성 요소를 여러 곳에서 재사용할 때 실제 비즈니스 요구 사항에 따라 구성 요소 이벤트의 명령을 설정하여 보다 유연하게 구성 요소를 적용할 수 있습니다.

사용자컨트롤를 선택하고 우클릭 후 우클릭 메뉴에서 "새 페이지 만들기"를 선택하면 이벤트 생성 대화상자가 팝업된다.

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/eidTBXndNmUROyLdlKI4/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/xV3ww1b5oyBaEwzs42fy/image.png" alt=""><figcaption></figcaption></figure>

| 항목       | 설명                                                                                                                                                                                                   |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 이름       | 이벤트의 이름입니다.                                                                                                                                                                                          |
| 이벤트 매개변수 | 팝업 대화 상자에서 매개변수를 추가하려면 "이벤트 매개변수" 하이퍼링크를 클릭하십시오. 이 매개변수는 이벤트 명령에서 사용할 수 있습니다.                                                                                                                        |
| 설명       | 이벤트에 대한 설명입니다. 이벤트에 설명을 추가 한 후, 마우스를![](https://help.grapecity.com.cn/download/thumbnails/80947679/image2022-9-28_12-11-19.png?version=1\&modificationDate=1673923191000\&api=v2)에 있으면 설명 내용이 표시됩니다. |

사용자컨트롤에 대한 이벤트를 생성하고 페이지에서 사용자컨트롤를 적용한 후 오른쪽 셀 설정에서 이벤트의 명령을 편집할 수 있습니다.

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/NFyhkt3JjsmrrTL4JML9/image.png" alt=""><figcaption></figcaption></figure>

예를 들어 사용자컨트롤를 만들고 "팝업 프롬프트 상자" 이벤트를 만듭니다.

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/Hus6BHgjEmN5wsRDAg92/image.png" alt=""><figcaption></figcaption></figure>

사용자컨트롤에서 버튼의 명령을 편집하고 명령을 "사용자 정의 컨트롤 명령 호출"을선택하고 구성 요소의 이벤트를 명령 이름으로 선택하십시오.

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/jhhlo5LJynsVpOkXfB3Z/image.png" alt=""><figcaption></figcaption></figure>

페이지의 구성 요소를 지정된 셀 영역으로 끌어다 놓고 오른쪽 셀 설정에서 사용자컨트롤 이벤트 명령을 편집합니다.&#x20;

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/9bwcXT6vHFWakHV91lAX/image.png" alt=""><figcaption></figcaption></figure>

페이지를 실행하고 페이지에서 버튼을 클릭하면 사용자컨트롤 명령이 트리거되고 사용자컨트롤이벤트 명령이 실행됩니다.

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/rI0euTJ2UVRNsO26B4SJ/image.png" alt=""><figcaption></figcaption></figure>


---

# 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://doc.forguncy.co.kr/components/usercontrol/event.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.
