历史列表
实现浏览历史的插件。目前只支持查看历史列表。
构造函数
用法
var histories = new window.shimo.sdk.slide.plugins.Histories({ apiHost: <SHIMO_API>, // api entryPoint accessToken: <token>, // window.shimo.token }) histories.setGuid(`${guid}`) histories.render(document.getElementById('histories-container'))
参数
名称 | 类型 | 描述 |
---|---|---|
options.apiHost | string | api地址 |
析构函数
用法
histories.destroy()
方法列表
render
渲染插件
- 返回
void
- 用法
render(container)
- 参数
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
container | HTMLElement | 无 | 历史插件渲染容器,插件顶部设置了css: flex: 1; 方便占满容器 |
setGuid
设置文件guid
- 返回
void
- 用法
setGuid(guid)
- 参数
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
guid | string | 无 | 文件guid |