이 함수는 선택된 파일 목록을 반환합니다.
SitesSDK.openDocumentPicker()
함수는 단일 인수를 취하여 선택한 문서로 분석되는 Promise를 반환합니다. 사용 가능한 옵션은 Oracle Content Management 통합 및 확장에 있는 Documents View Embed UI (documentsView Component) API V2의 documentsView
구성요소와 일치합니다.
사용법
SitesSDK.openDocumentPicker({ selectable: "any", layout: "grid" }).then(function (selection) { console.log(selection); });
문서가 검색된 경우 SitesSDK.getProperty('componentAssets', callback)
및 SitesSDK.setProperty('componentAssets', [assets])
속성을 사용하여 사이트에 해당 문서의 ID를 저장하도록 Oracle Content Management에 알려야 합니다. 그렇지 않으면 사이트에 게시되지 않으며 삭제될 수 있습니다.