此函数返回选定文件列表。
SitesSDK.openAssetPicker()
函数采用单个参数并返回 Promise,其解析为所选资产。可用选项与 《Integrating and Extending Oracle Content Management》 中 "Assets View Embed UI (assetsView Component) API V2" 中的 assetsView
组件的那些选项匹配。
用法
SitesSDK.openAssetPicker({ select: “single" }).then(function (selection) { console.log(selection); });
一旦检索到资产,系统将使用 SitesSDK.getProperty('componentAssets', callback)
和 SitesSDK.setProperty('componentAssets', [assets])
属性指示 Oracle Content Management 必须将这些资产的 ID 存储在站点中。否则,它们将不会发布到站点上,且可能会删除。