SitesSDK.setProperty(propertyName, propertyValue)

이 함수는 명명된 속성 값을 propertyValue로 설정합니다.

매개변수

이름 유형 설명

propertyName

문자열

속성의 이름입니다.

propertyValue

JSON 객체

속성의 값입니다.

관련 속성

이 표에는 setProperty()를 사용하여 인출할 수 있는 관련 속성 집합이 나와 있습니다.

속성 이름 설명 설정 렌더링

height

프레임의 높이

해당 사항 없음

width

프레임의 너비

해당 사항 없음

customSettingsData

설정 데이터

styleClass

선택된 스타일 클래스

description

페이지의 로컬 구성요소 인스턴스에 배너로 사용됩니다.

   

layout

로컬 구성요소에만 현재 선택된 레이아웃을 반환합니다. appinfo.json 파일의 값을 기반으로 설정 패널에서 업데이트할 수 있습니다.

   

renderStatus

사용자정의 구성요소가 렌더링 완료를 보고할 수 있습니다.

true

 

borderColor, borderRadius, alignment, borderStyle, margin 등의 기타 스타일 속성

     

사용법

// configuration that can be saved
var saveconfig = {
                                            //current settings id
                                            'id': self.appSettingsProperties['settingsId'],
                                            'url': self.url(),
                                            'limit': self.limit()
                                            };
// save property 'customSettingsData'
SitesSDK.setProperty('customSettingsData',saveconfig);