> For the complete documentation index, see [llms.txt](https://vulcan9.gitbook.io/jjapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vulcan9.gitbook.io/jjapi/api-reference/image-element-api.md).

# Image Element API

## Element 공통 API

[Element 공통 API ](#text-element-api)문서 내용을 참고하세요.

## Image Element API

이미지를 표시할 수 있는 Image Element 관련 API 입니다. ![](https://1979955876-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-wCsXjUCb5nqMsKoEl%2F-M1fHqlQc_O_KsxP2wqr%2F-M1fIEUnlkkJ9SL9UVH6%2Freference_07.png?generation=1583421916953791\&alt=media)

#### Image api 객체

* ***api***
  * **source (value: String, stateName: String): String**

    이미지 경로를 가져오거나 설정합니다.

    ```javascript
    // Getter
    var src = $self.api.source();

    // Setter
    $self.api.source('http://이미지 경로');
    $self.api.source('http://이미지 경로', 'over');

    // asset UID를 사용할수 있음
    $self.api.source('asset-87f315a5-b31f-4379-b57a-9a2ab1f5a21c');
    ```

##
